summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2016-06-06 23:24:27 -0700
committerMichael Forney <mforney@mforney.org>2016-06-06 23:24:27 -0700
commit21f0a79a8b5f5a44c47fb10bc6ed10d5a40c31b3 (patch)
treec474ab5f900d8ecf2eebec90c123c0d2ff6725e8
parent04573bb8dd64413f49b397346cfcb9fe95da82cf (diff)
perms-hook: Don't chdir("/"), we may be in a chroot
-rw-r--r--util/perms-hook.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/util/perms-hook.c b/util/perms-hook.c
index 37fdd19c..ce0eed61 100644
--- a/util/perms-hook.c
+++ b/util/perms-hook.c
@@ -239,8 +239,6 @@ int main(int argc, char *argv[]) {
exit(2);
}
- if (chdir("/") < 0)
- die("chdir:");
if (stat(".", &st) < 0)
die("stat:");
rootdev = st.st_dev;