mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
atomic_write rescue also Errno::EACCES
atomic_write rescue also Errno::EACCES on changing file permission. It could be raised with some type of filesystem
This commit is contained in:
parent
64e64c6f04
commit
4d59832f29
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ class File
|
||||||
chown(old_stat.uid, old_stat.gid, file_name)
|
chown(old_stat.uid, old_stat.gid, file_name)
|
||||||
# This operation will affect filesystem ACL's
|
# This operation will affect filesystem ACL's
|
||||||
chmod(old_stat.mode, file_name)
|
chmod(old_stat.mode, file_name)
|
||||||
rescue Errno::EPERM
|
rescue Errno::EPERM, Errno::EACCES
|
||||||
# Changing file ownership failed, moving on.
|
# Changing file ownership failed, moving on.
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue