Merge pull request #17230 from robertoz-01/master
atomic_write rescue also Errno::EACCES
This commit is contained in:
commit
664a0fa9cf
@ -40,7 +40,7 @@ def self.atomic_write(file_name, temp_dir = Dir.tmpdir)
|
||||
chown(old_stat.uid, old_stat.gid, file_name)
|
||||
# This operation will affect filesystem ACL's
|
||||
chmod(old_stat.mode, file_name)
|
||||
rescue Errno::EPERM
|
||||
rescue Errno::EPERM, Errno::EACCES
|
||||
# Changing file ownership failed, moving on.
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user