Package: antiword Version: 0.37-6 Tags: patch, lfs The attached patch enables large file support in antiword (large file support is a release goal for squeeze, inherited from etch: http://release.debian.org/squeeze/goals.txt ).
MS Word documents hopefully rarely reach 2GB, but this change also allows
antiword to process files on filing systems with 64 bit inode numbers, which
CIFS mounts seem to have.
Without the patch:
$ antiword 0-0.DOC
Get Filesize error 75
I can't get the size of '/opt/frisk/mnt/share2/Test data/1-7.DOC'
With the patch:
$ antiword 0-0.DOC
[expected output]
Note the >32 bit inode number reported by stat for this file:
$ stat 0-0.DOC
File: `0-0.DOC'
Size: 9160 Blocks: 24 IO Block: 16384 regular file
Device: 14h/20d Inode: 1407374883566553 Links: 1
Access: (0755/-rwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2010-10-09 11:41:36.418429400 +1030
Modify: 2009-02-19 16:34:16.000000000 +1030
Change: 2010-10-03 18:32:05.967133800 +1030
Cheers,
Olly
diff -u antiword-0.37/debian/rules antiword-0.37/debian/rules --- antiword-0.37/debian/rules +++ antiword-0.37/debian/rules @@ -7,7 +7,7 @@ include /usr/share/dpatch/dpatch.make -CFLAGS = -Wall -pedantic +CFLAGS = -Wall -pedantic -D_FILE_OFFSET_BITS=64 LDFLAGS= ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
signature.asc
Description: Digital signature

