summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2016-12-18 16:52:30 -0800
committerMichael Forney <mforney@mforney.org>2016-12-19 00:05:57 -0800
commitfe448d88bc10e2c4804f603da4649a7cd3b2da1d (patch)
tree922b81d6f875782e37a366361244bb0b150567cc /util
parent2420bcc6b191d1db5d324a4b4dd597da25843338 (diff)
perms-hook: Don't pass AT_SYMLINK_NOFOLLOW to fchmodat
We never call this on symlinks.
Diffstat (limited to 'util')
-rw-r--r--util/perms-hook.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/perms-hook.c b/util/perms-hook.c
index d2afbaa8..ef1bf447 100644
--- a/util/perms-hook.c
+++ b/util/perms-hook.c
@@ -149,7 +149,7 @@ static int
chmod_v(const char *path, mode_t mode)
{
printf("chmod(\"%s\", %#o)\n", path, mode);
- return fchmodat(rootfd, path, mode, AT_SYMLINK_NOFOLLOW);
+ return fchmodat(rootfd, path, mode, 0);
}
static int