From 54a043ffd13f3d896b58c6a9f0a4a5bb2170b9ab Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 15 Apr 2024 21:38:58 +0200 Subject: Merging 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