X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Ftincd.c;h=89bda91b0119424ce1d7496a72ffb0fc92e8588f;hp=929e9b91f89041bac996ea1eacd43ab4f1fc0c57;hb=d4f9863635d06665cfbd3c46dc482344de240e97;hpb=6be5d4f5b67764115b37528d2fe01bd245b3cd3e diff --git a/src/tincd.c b/src/tincd.c index 929e9b91..89bda91b 100644 --- a/src/tincd.c +++ b/src/tincd.c @@ -465,7 +465,7 @@ static bool drop_privs() { } 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; }