$NetBSD: patch-ag,v 1.1 2003/12/23 11:02:13 xtraeme Exp $ --- bin/check_perms.orig Mon Mar 31 14:07:55 2003 +++ bin/check_perms @@ -70,8 +70,14 @@ class State: 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