summaryrefslogtreecommitdiff
path: root/Mailman/bin/check_perms.py
diff options
context:
space:
mode:
authorMark Sapiro2007-06-28 12:23:25 -0700
committerMark Sapiro2007-06-28 12:23:25 -0700
commitf2ce3bc944d813d255e562a2102541fd0e24f1c0 (patch)
tree686063c6d25ceb1094d591e7b8bb8b504dc05019 /Mailman/bin/check_perms.py
parent31129a667ef55b89ec0a0be920d80a9e31409664 (diff)
downloadmailman-f2ce3bc944d813d255e562a2102541fd0e24f1c0.tar.gz
mailman-f2ce3bc944d813d255e562a2102541fd0e24f1c0.tar.zst
mailman-f2ce3bc944d813d255e562a2102541fd0e24f1c0.zip
Diffstat (limited to 'Mailman/bin/check_perms.py')
-rwxr-xr-xMailman/bin/check_perms.py13
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()