From fe448d88bc10e2c4804f603da4649a7cd3b2da1d Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Sun, 18 Dec 2016 16:52:30 -0800 Subject: perms-hook: Don't pass AT_SYMLINK_NOFOLLOW to fchmodat We never call this on symlinks. --- util/perms-hook.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3