Closed Bug 303262 Opened 19 years ago Closed 19 years ago

file:/// URLS directory listing fails if large file present

Categories

(Firefox :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 278738

People

(Reporter: o.flebbe, Unassigned)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050624
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050624

Please create a large file > 2GB. for instance with

dd if=/dev/zero of=/tmp/examplefile seek=4048 bs=1M count=1

If you browse with file:///tmp the directory listing will be incomplete (for
instance examplefile is missing).



Reproducible: Always

Steps to Reproduce:




This happens because xpcpm/io/nsLocalFileUnix.cpp is not large file aware. The
stat() call will return EOVERFLOW. (On other platforms you will get other Error
codes)

IMHO one should compile all code on Linux and Unix with
 -D_LARGE_FILE_SOURCE -D_FILE_OFFSET_BITS=64
it is more or less standard.
Dupe! :)

*** This bug has been marked as a duplicate of 278738 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.