提交 4d59832f 编写于 作者: R Roberto Zanon

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
上级 64e64c6f
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册