Bug 912635 - indent does not support 64-bit file systems
Summary: indent does not support 64-bit file systems
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: indent
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Petr Pisar
QA Contact: Fedora Extras Quality Assurance
URL: http://lists.gnu.org/archive/html/bug...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-19 09:16 UTC by Petr Pisar
Modified: 2013-03-26 13:39 UTC (History)
1 user (show)

Fixed In Version: indent-2.2.11-9.fc19
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-19 15:03:14 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Allow 64-bit stat (2.58 KB, patch)
2013-02-19 14:07 UTC, Petr Pisar
no flags Details | Diff

Description Petr Pisar 2013-02-19 09:16:49 UTC
src/code_io.c:read_file() calls fstat(2) and copies stat.st_size into unsigned long variable.

To support 64-bit file sizes or i-node numbers, one have to compile with -D_FILE_OFFSET_BITS=64 and fix data types to use off_t or size_t.

Comment 1 Petr Pisar 2013-02-19 14:07:02 UTC
Created attachment 699461 [details]
Allow 64-bit stat


Note You need to log in before you can comment on or make changes to this bug.