summaryrefslogtreecommitdiffstats
path: root/src/check_mandirs.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 19:38:58 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 19:38:58 +0000
commit54a043ffd13f3d896b58c6a9f0a4a5bb2170b9ab (patch)
tree1d8aa5f85a9450353ec3fdaaa5100f60c2d6478e /src/check_mandirs.c
parentAdding debian version 2.12.0-4. (diff)
downloadman-db-54a043ffd13f3d896b58c6a9f0a4a5bb2170b9ab.tar.xz
man-db-54a043ffd13f3d896b58c6a9f0a4a5bb2170b9ab.zip
Merging upstream version 2.12.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/check_mandirs.c')
-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) {