summaryrefslogtreecommitdiff
path: root/Mailman/bin/check_perms.py
diff options
context:
space:
mode:
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()