From d6772501db451b5d7fd4001f5e9c4f1ad20c63d6 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Fri, 24 Nov 2006 17:21:44 +0000 Subject: 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 --- archival/libunarchive/get_header_ar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'archival/libunarchive/get_header_ar.c') 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'; -- cgit v1.1