diff options
author | Jon Stanley <jonstanley@gmail.com> | 2009-12-10 00:36:58 -0500 |
---|---|---|
committer | Jon Stanley <jonstanley@gmail.com> | 2009-12-10 00:36:58 -0500 |
commit | de61d14764d29daaabdd4c345e1a28804be0bf87 (patch) | |
tree | ca405550216986f4d4fb4ff1c7c471147f77324e | |
parent | 9c4793474b7c72df80ff99e93d80029cbaa23bd0 (diff) | |
download | cvssetfacl-de61d14764d29daaabdd4c345e1a28804be0bf87.tar.gz cvssetfacl-de61d14764d29daaabdd4c345e1a28804be0bf87.tar.xz cvssetfacl-de61d14764d29daaabdd4c345e1a28804be0bf87.zip |
Change ownership of all the files currently in the directory as well
-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] |