summaryrefslogtreecommitdiffstats
path: root/setacls.py
diff options
context:
space:
mode:
Diffstat (limited to 'setacls.py')
-rwxr-xr-xsetacls.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setacls.py b/setacls.py
index a05f4d8..3d6e81a 100755
--- a/setacls.py
+++ b/setacls.py
@@ -142,10 +142,10 @@ def apply_acls(acl_dict, dry_run=False):
if not dry_run:
acl_dict[dir].applyto(real_dir, posix1e.ACL_TYPE_DEFAULT)
acl_dict[dir].applyto(real_dir, posix1e.ACL_TYPE_ACCESS)
+ os.chown(real_dir, 0, scm_admin_gid)
else:
print 'would apply the following ACL to %s' % real_dir
print acl_dict[dir]
- os.chown(real_dir, 0, scm_admin_gid)
for file in os.listdir(real_dir):
real_file = os.path.join(real_dir, file)
if not dry_run: