Repair chroot, the only feature that isn't covered by tests

This commit is contained in:
Solene Rapenne 2021-02-23 23:24:12 +01:00
parent 31d384833f
commit 458592594e

3
main.c
View file

@ -66,6 +66,9 @@ drop_privileges(const char *user, const char *path)
errlog("dropping privileges to user %s (uid=%i) failed",
user, pw->pw_uid);
}
/* base directory is now / */
estrlcpy(chroot_dir, "/", sizeof(chroot_dir));
}
#ifdef __OpenBSD__
/*