This project is archived and is in readonly mode.
atomic_write
-
joost baaij
+1
-
Pratik
- Assigned user set to josh
- Tag changed from activesupport to activesupport, patch
-
josh
- State changed from new to resolved
Looks like this fix was already applied.
begin # Get original file permissions old_stat = stat(file_name) rescue Errno::ENOENT # No old permissions, write a temp file to determine the defaults check_name = join(dirname(file_name), ".permissions_check.#{Thread.current.object_id}.#{Process.pid}.#{rand(1000000)}") open(check_name, "w") { } old_stat = stat(check_name) unlink(check_name) end
