Repair chroot, the only feature that isn't covered by tests
This commit is contained in:
parent
31d384833f
commit
458592594e
3
main.c
3
main.c
|
@ -66,6 +66,9 @@ drop_privileges(const char *user, const char *path)
|
||||||
errlog("dropping privileges to user %s (uid=%i) failed",
|
errlog("dropping privileges to user %s (uid=%i) failed",
|
||||||
user, pw->pw_uid);
|
user, pw->pw_uid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* base directory is now / */
|
||||||
|
estrlcpy(chroot_dir, "/", sizeof(chroot_dir));
|
||||||
}
|
}
|
||||||
#ifdef __OpenBSD__
|
#ifdef __OpenBSD__
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue