Browse Source

Fixed File.chmod call (wrong number of arguments (1 for 0)).

Martin Edenhofer 9 years ago
parent
commit
5e87eb438b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/models/package.rb

+ 1 - 1
app/models/package.rb

@@ -435,7 +435,7 @@ returns
       file = File.new(location, 'wb')
       file.write(data)
       file.close
-      File.chmod(permission.to_i(8), location)
+      File.chmod(permission.to_s.to_i(8), location)
     rescue => e
       raise 'ERROR: ' + e.inspect
     end