From f5b6b735a731901f09d7f3cc153c1d869269ee83 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 15 Apr 2024 21:38:57 +0200 Subject: Adding upstream version 2.12.1. Signed-off-by: Daniel Baumann --- src/check_mandirs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/check_mandirs.c') 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) { -- cgit v1.2.3