summaryrefslogtreecommitdiffstats
path: root/src/check_mandirs.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/check_mandirs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/check_mandirs.c b/src/check_mandirs.c
index 75c6f5e..0c0db15 100644
--- a/src/check_mandirs.c
+++ b/src/check_mandirs.c
@@ -383,9 +383,9 @@ void chown_if_possible (const char *path MAYBE_UNUSED)
/* create the catman hierarchy if it doesn't exist */
static void mkcatdirs (const char *mandir, const char *catdir)
{
- char *manname, *catname;
-
if (catdir) {
+ char *manname, *catname;
+
int oldmask = umask (022);
/* first the base catdir */
if (is_directory (catdir) != 1) {