blob: 84b3e07b94f96f492cbf3fc9206a29b917b01199 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
SPDX-FileCopyrightText: V <v@unfathomable.blue>
SPDX-License-Identifier: OSL-3.0
--- a/src/mlmmj-process.c
+++ b/src/mlmmj-process.c
@@ -490,6 +490,9 @@
{ NULL, 0, NULL }
};
+ /* Postfix unconditionally sets this to 0077 */
+ umask(0027);
+
CHECKFULLPATH(argv[0]);
log_set_name(argv[0]);
@@ -553,7 +556,7 @@
donemailname = concatstr(3, listdir, "/queue/", randomstr);
donemailfd = open(donemailname, O_RDWR|O_CREAT|O_EXCL,
- S_IRUSR|S_IWUSR);
+ S_IRUSR|S_IWUSR|S_IRGRP);
} while ((donemailfd < 0) && (errno == EEXIST));
|