Ticket #1537 (new defect)

Opened 13 months ago

Last modified 7 months ago

File overwrite prompt shows bad fielsize for files over 4GB

Reported by: bilbo Owned by:
Priority: major Milestone: 4.7
Component: mc-core Version: master
Severity: no branch Keywords:
Cc: Votes for changeset:
Blocking: Blocked By:

Description

When I want copy file 6963138235 bytes large (6.9GB) over another file with same size, the prompt "File exists" asking whether to overwrite the file or not does not report correct size of the files:

Target file "/m/f/Doc/Op~05.osm.bz2" already exists!

Source date: Aug  8 01:43, size 2668170939
Target date: Aug  8 01:43, size 2668170939

Using Debian unstable, x86_64
File size in other places (file panels...) is shown correctly

Change History

Changed 13 months ago by andrew_b

Did you built MC with --enable-largefile option?

Changed 13 months ago by bilbo

Seems to be enabled by default, but I run "make clean", rerun configure with --enable-largefile explicitly specified and the bug is still there

But when I looked in config.h, I saw this:

/* Number of bits in a file offset, on hosts where this is settable. */
/* #undef _FILE_OFFSET_BITS */

/* Define for large files, on AIX-style hosts. */
/* #undef _LARGE_FILES */

and in config.log

configure:13852: checking for _FILE_OFFSET_BITS value needed for large files
configure:13877: gcc -std=gnu99 -c -g -O2  conftest.c >&5
configure:13877: $? = 0
configure:13909: result: no

Maybe configure didn't figure out that I have 64bit system? But file sizes in panels are correct...

Note: See TracTickets for help on using tickets.