From 4169cee9e1805855bdc8dd7503f6f8c96f73b2bc Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Sat, 18 Jun 2016 19:06:26 -0700 Subject: perms-hook: Clear umask before readchanges Otherwise, directories created with mkdir may have the wrong permissions. --- util/perms-hook.c | 1 + 1 file changed, 1 insertion(+) (limited to 'util') diff --git a/util/perms-hook.c b/util/perms-hook.c index 0bc2e1bd..177d09f0 100644 --- a/util/perms-hook.c +++ b/util/perms-hook.c @@ -337,6 +337,7 @@ int main(int argc, char *argv[]) { if (old) readspecial(&oldsp, old); readspecial(&newsp, new); + umask(0); readchanges(old, new); return 0; -- cgit v1.2.3