[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#2178: dpkg unclear error message



A light dawns:

lib/tarfn.c:
struct TarHeader {
	char Name[100];

It is entirely due to the *length* of the filename. GNU tar has a
mechanism for handling filenames longer than 100 chars, but it appears
that the dpkg tar-parser doesn't deal with it...

depreciation+% rm -rf xpkg/tmp/executor
depreciation+% touch xpkg/tmp/0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
depreciation+% time ~/debian/inst/dpkg-1.0.12/dpkg-deb/dpkg-deb --build xpkg
dpkg-deb: building package `xpkg' in `xpkg.deb'.
0.050u 0.330s 0:00.53 71.6% 0+0k 0+0io 140pf+0w
depreciation+%
depreciation+% psac time ~/debian/inst/dpkg-1.0.12/main/dpkg --install xpkg.deb
Command line:
time /home/eichin/debian/inst/dpkg-1.0.12/main/dpkg --install xpkg.deb
OK to execute? y
(Reading database ... 21856 files and directories currently installed.)
Preparing to replace xpkg (using xpkg.deb) ...
Unpacking replacement xpkg ...
dpkg: error processing xpkg.deb (--install):
 corrupted filesystem tarfile - corrupted package archive
Errors were encountered while processing:
 xpkg.deb
Command had non-zero exit status 1
2.02user 1.70system 0:05.97elapsed 62%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (148major+1452minor)pagefaults 0swaps
Exit 1



Reply to: