diff options
author | Hans Insulander <hin@cvs.openbsd.org> | 2002-06-07 06:23:37 +0000 |
---|---|---|
committer | Hans Insulander <hin@cvs.openbsd.org> | 2002-06-07 06:23:37 +0000 |
commit | 6ed2adf3e47e0620c49a19a5b318644db473f7e8 (patch) | |
tree | 700bbc6a8efd225569b531e1d2d09c720642f97c | |
parent | baf3d4070fdcc051a0653be8000f909d616c9279 (diff) |
Sync with arla-current: after doing chroot(), do chdir("/").
(Reported by a handful of people.)
-rw-r--r-- | usr.sbin/afs/src/arlad/arlad.c | 3 |
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); |