summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
6be5d4f)
Fix the famous chdir(".") vs chdir("/") after chroot(something).
}
if (do_chroot) {
tzset(); /* for proper timestamps in logs */
}
if (do_chroot) {
tzset(); /* for proper timestamps in logs */
- if (chroot(confbase) != 0 || chdir(".") != 0) {
+ if (chroot(confbase) != 0 || chdir("/") != 0) {
logger(LOG_ERR, _("%s failed"), "chroot()");
return false;
}
logger(LOG_ERR, _("%s failed"), "chroot()");
return false;
}