Fixed file permissions mask in file_yard

This commit is contained in:
Alexey Verkhovsky 2005-10-20 01:23:31 +00:00
parent 50b2cbd693
commit 44d09c45f8

View file

@ -17,7 +17,7 @@ class FileYard
if io.kind_of?(Tempfile)
io.close
check_upload_size(io.size)
File.chmod(600, file_path(name)) if File.exists? file_path(name)
File.chmod(0600, file_path(name)) if File.exists? file_path(name)
FileUtils.mv(io.path, file_path(name))
else
content = io.read