summaryrefslogtreecommitdiffstats
path: root/lib/redmine
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2019-01-20 07:39:13 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2019-01-20 07:39:13 +0000
commit8f5849613838c45ad1d7674fb517b3430d1a8663 (patch)
tree586aee7f27da986c948efa85881f4bf09e8d1a2d /lib/redmine
parent2a7d82fd8fb785210abffdaee8dfc9944deb1ea6 (diff)
downloadredmine-8f5849613838c45ad1d7674fb517b3430d1a8663.tar.gz
redmine-8f5849613838c45ad1d7674fb517b3430d1a8663.zip
Filesystem adapter does not show correct size for large files (#30411).
git-svn-id: http://svn.redmine.org/redmine/trunk@17831 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine')
-rw-r--r--lib/redmine/scm/adapters/filesystem_adapter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/scm/adapters/filesystem_adapter.rb b/lib/redmine/scm/adapters/filesystem_adapter.rb
index 1373a93c0..a40465a54 100644
--- a/lib/redmine/scm/adapters/filesystem_adapter.rb
+++ b/lib/redmine/scm/adapters/filesystem_adapter.rb
@@ -81,7 +81,7 @@ module Redmine
# below : list unreadable files, but dont link them.
:path => utf_8_path,
:kind => (File.directory?(t1) ? 'dir' : 'file'),
- :size => (File.directory?(t1) ? nil : [File.size(t1)].pack('l').unpack('L').first),
+ :size => (File.directory?(t1) ? nil : File.size(t1)),
:lastrev =>
Revision.new({:time => (File.mtime(t1)) })
})