1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
This might be submitted upstream, had not upstream decided
that 2.1.30 is the final release.
The messages/ directory with its .mo/.po files, and the
top installation directory, do not require group write
permissions.
-- Matthias Andree (mandree@FreeBSD.org, 2020-04-14)
--- bin/check_perms.orig 2020-04-13 19:08:14.000000000 +0200
+++ bin/check_perms 2020-04-25 17:50:19.448831000 +0200
@@ -143,6 +143,14 @@ def checkwalk(arg, dirname, names):
elif (os.path.commonprefix((path, mm_cfg.QUEUE_DIR))
== mm_cfg.QUEUE_DIR):
targetperms = QFILEPERMS
+ elif (path == mm_cfg.PREFIX or os.path.split(path)[1] in
+ ('archives', 'bin', 'cgi-bin', 'cron', 'icons', 'mail', 'scripts',)
+ or '/messages' in path
+ or '/templates' in path
+ or '/tests' in path
+ or '/Mailman' in path):
+ # don't require LC_MESSAGES to be group writable
+ targetperms = DIRPERMS & ~S_IWGRP & ~S_ISGID
else:
targetperms = DIRPERMS
octperms = oct(targetperms)
@@ -192,7 +200,7 @@ def checkall():
if e.errno <> errno.ENOENT: raise
print C_('WARNING: directory does not exist: %(d)s')
continue
- if (mode & DIRPERMS) <> DIRPERMS:
+ if (mode & DIRPERMS) <> DIRPERMS and d <> mm_cfg.PREFIX:
STATE.ERRORS += 1
print C_('directory must be at least 02775: %(d)s'),
if STATE.FIX:
|