summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsetacls.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/setacls.py b/setacls.py
index 3d6e81a..ea67fd6 100755
--- a/setacls.py
+++ b/setacls.py
@@ -152,8 +152,10 @@ def apply_acls(acl_dict, dry_run=False):
if os.path.isdir(real_file):
acl_dict[dir].applyto(real_file, posix1e.ACL_TYPE_DEFAULT)
acl_dict[dir].applyto(real_file, posix1e.ACL_TYPE_ACCESS)
+ os.chown(real_file, 0, scm_admin_gid)
if os.path.isfile(real_file):
acl_dict[dir].applyto(real_file, posix1e.ACL_TYPE_ACCESS)
+ os.chown(real_file, 0, scm_admin_gid)
else:
print 'would apply the following ACL to %s' % real_file
print acl_dict[dir]