aboutsummaryrefslogtreecommitdiffstats
path: root/bin/check_perms
diff options
context:
space:
mode:
Diffstat (limited to 'bin/check_perms')
-rwxr-xr-xbin/check_perms11
1 files changed, 6 insertions, 5 deletions
diff --git a/bin/check_perms b/bin/check_perms
index b9926016..7bba0f74 100755
--- a/bin/check_perms
+++ b/bin/check_perms
@@ -135,12 +135,13 @@ def checkwalk(arg, dirname, names):
# 'group' permissions are checked here. Their 'other' permissions
# aren't checked.
private = mm_cfg.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, mm_cfg.QUEUE_DIR)) \
- == mm_cfg.QUEUE_DIR:
+ elif (os.path.commonprefix((path, mm_cfg.QUEUE_DIR))
+ == mm_cfg.QUEUE_DIR):
targetperms = QFILEPERMS
else:
targetperms = DIRPERMS