summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2016-06-18 19:06:26 -0700
committerMichael Forney <mforney@mforney.org>2016-06-18 19:06:26 -0700
commit4169cee9e1805855bdc8dd7503f6f8c96f73b2bc (patch)
treec60f780665913687df78b88b8f2ec4cd0dedd8ac /util
parent9c7934c56b8ab973090aa81ae1ba944ff6c7cb46 (diff)
perms-hook: Clear umask before readchanges
Otherwise, directories created with mkdir may have the wrong permissions.
Diffstat (limited to 'util')
-rw-r--r--util/perms-hook.c1
1 files changed, 1 insertions, 0 deletions
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;