Merge pull request #48292 from rallytime/bp-48288

Back-port #48288 to 2018.3
This commit is contained in:
Nicole Thomas 2018-06-25 15:07:10 -04:00 committed by GitHub
commit 4760f87153
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4458,7 +4458,7 @@ def check_perms(name, ret, user, group, mode, attrs=None, follow_symlinks=False)
lattrs = lsattr(name)
if lattrs is not None:
# List attributes on file
perms['lattrs'] = ''.join(lattrs.get('name', ''))
perms['lattrs'] = ''.join(lattrs.get(name, ''))
# Remove attributes on file so changes can be enforced.
if perms['lattrs']:
chattr(name, operator='remove', attributes=perms['lattrs'])