Ticket #1537 (closed defect: fixed)
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 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Branch state: | Votes for changeset: |
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
comment:2 Changed 15 years 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...
comment:3 Changed 14 years ago by andrew_b
- Status changed from new to closed
- Resolution set to fixed
This should be fixed in 17783a240c2e4317a00f8ecd427d7a61630ae273 and 00b1aa4a8eb097f1f3063d47d12927531afde2e2 changesets. Feel free to reopen this ticket if bug is still present.
Did you built MC with --enable-largefile option?