pkgsrc/mail/mailman/patches/patch-ag

22 lines
713 B
Text
Raw Normal View History

$NetBSD: patch-ag,v 1.2 2008/06/29 07:47:03 kim Exp $
--- bin/check_perms.orig 2008-04-21 21:28:22.000000000 +0300
+++ bin/check_perms 2008-06-29 09:06:30.000000000 +0300
@@ -70,8 +70,14 @@
STATE = State()
-DIRPERMS = S_ISGID | S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH
-QFILEPERMS = S_ISGID | S_IRWXU | S_IRWXG
+SysName = os.uname()[0]
+if SysName[-3:] == 'BSD':
+ DIRPERMS = S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH
+ QFILEPERMS = S_IRWXU | S_IRWXG
+else:
+ DIRPERMS = S_ISGID | S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH
+ QFILEPERMS = S_ISGID | S_IRWXU | S_IRWXG
+
PYFILEPERMS = S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH
ARTICLEFILEPERMS = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP
PRIVATEPERMS = QFILEPERMS