From 5e87eb438b05ed2d86027ca35608cb45a6d83461 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 1 Feb 2016 00:54:54 +0100 Subject: [PATCH] Fixed File.chmod call (wrong number of arguments (1 for 0)). --- app/models/package.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/package.rb b/app/models/package.rb index 620495f86..1323cc762 100644 --- a/app/models/package.rb +++ b/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