diff options
Diffstat (limited to 'setacls.py')
-rwxr-xr-x | setacls.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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] |