]> source.dussan.org Git - redmine.git/commitdiff
Filesystem adapter does not show correct size for large files (#30411).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 20 Jan 2019 07:39:13 +0000 (07:39 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 20 Jan 2019 07:39:13 +0000 (07:39 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@17831 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/scm/adapters/filesystem_adapter.rb

index 1373a93c0e0d0bf6d18f3c51f16de165e4f25632..a40465a54757e34aded3af71db4d5c4f6a952b7b 100644 (file)
@@ -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)) })
                         })