Repair chroot, the only feature that isn't covered by tests
This commit is contained in:
parent
31d384833f
commit
458592594e
1 changed files with 3 additions and 0 deletions
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",
|
||||
user, pw->pw_uid);
|
||||
}
|
||||
|
||||
/* base directory is now / */
|
||||
estrlcpy(chroot_dir, "/", sizeof(chroot_dir));
|
||||
}
|
||||
#ifdef __OpenBSD__
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue