Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 78260

Summary: Small fix for emelfm and >2GB files
Product: Gentoo Linux Reporter: Wedge_ <wedge__>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED INVALID    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Fixes display of filesize for >2GB files

Description Wedge_ 2005-01-16 12:50:21 UTC
emelfm doesn't display file sizes for files over 2GB in size correctly (it wraps into negative values). From a quick look at the source, the st_size member of struct stat is where the size is taken from. Defining _FILE_OFFSET_BITS=64 during compilation should cause the 64-bit version of the stat functions and structs to be used, which should fix the problem. I've checked this and it seems to work without breaking anything else.

Reproducible: Always
Steps to Reproduce:
1. emerge emelfm
2. View a directory containing a file of over 2GB in size, and check the filesize column.
3.
Comment 1 Wedge_ 2005-01-16 12:51:31 UTC
Created attachment 48680 [details, diff]
Fixes display of filesize for >2GB files
Comment 2 Matthew Kennedy (RETIRED) gentoo-dev 2005-09-30 12:12:22 UTC
Must have the wrong person :-) Sending to bug wranglers.
Comment 3 Uwe Helm 2006-06-11 09:31:57 UTC
this is fixed upstream and can be closed
Comment 4 Alec Warner (RETIRED) archtester gentoo-dev Security 2006-08-03 16:11:24 UTC
(In reply to comment #3)
> this is fixed upstream and can be closed
> 

ok then :)