diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 19:38:57 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 19:38:57 +0000 |
commit | f5b6b735a731901f09d7f3cc153c1d869269ee83 (patch) | |
tree | 565a1b0f3c6a4094a5f2198879fb239053549f1e /src/check_mandirs.c | |
parent | Adding upstream version 2.12.0. (diff) | |
download | man-db-f5b6b735a731901f09d7f3cc153c1d869269ee83.tar.xz man-db-f5b6b735a731901f09d7f3cc153c1d869269ee83.zip |
Adding upstream version 2.12.1.upstream/2.12.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/check_mandirs.c')
-rw-r--r-- | src/check_mandirs.c | 4 |
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) { |