areguera / rpms / mailman

Forked from rpms/mailman 4 years ago
Clone

Blame SOURCES/mailman-2.1.15-check_perms.patch

e7a395
diff --git a/bin/check_perms b/bin/check_perms
e7a395
index 5ef3306..d50518a 100755
e7a395
--- a/bin/check_perms
e7a395
+++ b/bin/check_perms
e7a395
@@ -70,7 +70,7 @@ class State:
e7a395
 
e7a395
 STATE = State()
e7a395
 
e7a395
-DIRPERMS = S_ISGID | S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH
e7a395
+DIRPERMS = S_IRWXU | S_IRGRP | S_IROTH | S_IXOTH
e7a395
 QFILEPERMS = S_ISGID | S_IRWXU | S_IRWXG
e7a395
 PYFILEPERMS = S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH
e7a395
 ARTICLEFILEPERMS = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP
e7a395
@@ -195,7 +195,7 @@ def checkall():
e7a395
             continue
e7a395
         if (mode & DIRPERMS) <> DIRPERMS:
e7a395
             STATE.ERRORS += 1
e7a395
-            print C_('directory must be at least 02775: %(d)s'),
e7a395
+            print C_('directory must be at least 0755: %(d)s'),
e7a395
             if STATE.FIX:
e7a395
                 print C_('(fixing)')
e7a395
                 os.chmod(d, mode | DIRPERMS)