aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorRoberto Zanon <roberto.zanon.01@gmail.com>2014-10-10 14:24:35 +0200
committerRoberto Zanon <roberto.zanon.01@gmail.com>2014-10-10 14:24:35 +0200
commit4d59832f29b0f98f0c8c4cc228e6d5d00a5a8ffd (patch)
treed655b42f6855741b72737eeea1ef641e634e0170 /activesupport
parent64e64c6f041224fefc03bbfdd2dd86d494df1990 (diff)
downloadrails-4d59832f29b0f98f0c8c4cc228e6d5d00a5a8ffd.tar.gz
rails-4d59832f29b0f98f0c8c4cc228e6d5d00a5a8ffd.tar.bz2
rails-4d59832f29b0f98f0c8c4cc228e6d5d00a5a8ffd.zip
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
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/core_ext/file/atomic.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/file/atomic.rb b/activesupport/lib/active_support/core_ext/file/atomic.rb
index 0e7e3ba378..38374af388 100644
--- a/activesupport/lib/active_support/core_ext/file/atomic.rb
+++ b/activesupport/lib/active_support/core_ext/file/atomic.rb
@@ -40,7 +40,7 @@ class File
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