diff options
author | Denis Vlasenko | 2006-11-24 17:21:44 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-11-24 17:21:44 +0000 |
commit | d6772501db451b5d7fd4001f5e9c4f1ad20c63d6 (patch) | |
tree | 30b4606de7dbbe62462ad7dc106e429a32e22272 /archival/libunarchive/get_header_ar.c | |
parent | d398ecab9d6e42b1091d214df50bf938030d11a2 (diff) | |
download | busybox-d6772501db451b5d7fd4001f5e9c4f1ad20c63d6.zip busybox-d6772501db451b5d7fd4001f5e9c4f1ad20c63d6.tar.gz |
tar: fix and sanitize handling of long filenames/linknames
(GNU extensions 'K' and 'L').
We correctly handle them when untarring now, but unfortunately
we still don't use them when tarring! That stupid 100 char limit
is still there!
The biggest problem is that we don't support 'pax' tar format.
Linux kernel tarballs are in this format... shame
Diffstat (limited to 'archival/libunarchive/get_header_ar.c')
-rw-r--r-- | archival/libunarchive/get_header_ar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/archival/libunarchive/get_header_ar.c b/archival/libunarchive/get_header_ar.c index b91c6f9..0d040e3 100644 --- a/archival/libunarchive/get_header_ar.c +++ b/archival/libunarchive/get_header_ar.c @@ -88,7 +88,7 @@ char get_header_ar(archive_handle_t *archive_handle) #endif } else { /* short filenames */ - typed->name = xstrndup(ar.formatted.name, 16); + typed->name = xstrndup(ar.formatted.name, 16); } typed->name[strcspn(typed->name, " /")] = '\0'; |