Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 78260 - Small fix for emelfm and >2GB files
Summary: Small fix for emelfm and >2GB files
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-16 12:50 UTC by Wedge_
Modified: 2006-08-03 16:11 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Fixes display of filesize for >2GB files (emelfm_large_file_fix.patch,881 bytes, patch)
2005-01-16 12:51 UTC, Wedge_
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 :)