diff options
| author | Mark Sapiro | 2007-06-28 12:23:25 -0700 |
|---|---|---|
| committer | Mark Sapiro | 2007-06-28 12:23:25 -0700 |
| commit | f2ce3bc944d813d255e562a2102541fd0e24f1c0 (patch) | |
| tree | 686063c6d25ceb1094d591e7b8bb8b504dc05019 /Mailman/bin/check_perms.py | |
| parent | 31129a667ef55b89ec0a0be920d80a9e31409664 (diff) | |
| download | mailman-f2ce3bc944d813d255e562a2102541fd0e24f1c0.tar.gz mailman-f2ce3bc944d813d255e562a2102541fd0e24f1c0.tar.zst mailman-f2ce3bc944d813d255e562a2102541fd0e24f1c0.zip | |
Diffstat (limited to 'Mailman/bin/check_perms.py')
| -rwxr-xr-x | Mailman/bin/check_perms.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/Mailman/bin/check_perms.py b/Mailman/bin/check_perms.py index 6798a59ba..3cdbaca5e 100755 --- a/Mailman/bin/check_perms.py +++ b/Mailman/bin/check_perms.py @@ -110,12 +110,13 @@ def checkwalk(arg, dirname, names): # 'group' permissions are checked here. Their 'other' permissions # aren't checked. private = config.PRIVATE_ARCHIVE_FILE_DIR - if path == private or \ - (os.path.commonprefix((path, private)) == private - and os.path.split(path)[1] == 'database'): + if path == private or ( + os.path.commonprefix((path, private)) == private + and os.path.split(path)[1] == 'database'): + # then... targetperms = PRIVATEPERMS - elif os.path.commonprefix((path, config.QUEUE_DIR)) \ - == config.QUEUE_DIR: + elif (os.path.commonprefix((path, config.QUEUE_DIR)) + == config.QUEUE_DIR): targetperms = QFILEPERMS else: targetperms = DIRPERMS @@ -402,7 +403,7 @@ def main(): else: print _('Problems found:'), STATE.ERRORS print _('Re-run as $MAILMAN_USER (or root) with -f flag to fix') - + if __name__ == '__main__': main() |
