summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/afs/src/arlad/arlad.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.sbin/afs/src/arlad/arlad.c b/usr.sbin/afs/src/arlad/arlad.c
index e12ddddd55d..ee4acb64152 100644
--- a/usr.sbin/afs/src/arlad/arlad.c
+++ b/usr.sbin/afs/src/arlad/arlad.c
@@ -165,6 +165,9 @@ arla_start (char *device_file, const char *cache_dir)
if (chroot (cache_dir) < 0)
arla_err (1, ADEBERROR, errno, "chroot %s", cache_dir);
+ if (chdir ("/") < 0)
+ arla_err (1, ADEBERROR, errno, "chdir /");
+
if (fork_flag)
kill(getppid(), SIGUSR1);