From 05efca90d22184a5c2fd1f1d61da9afe2f0ae2af Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Tue, 29 Apr 2008 04:12:58 +0000 Subject: tar: fix obscure case when name is "" and prefix is not "" --- archival/libunarchive/get_header_tar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archival/libunarchive/get_header_tar.c b/archival/libunarchive/get_header_tar.c index 9134d6db6..29aed184c 100644 --- a/archival/libunarchive/get_header_tar.c +++ b/archival/libunarchive/get_header_tar.c @@ -112,7 +112,7 @@ char get_header_tar(archive_handle_t *archive_handle) archive_handle->offset += 512; /* If there is no filename its an empty header */ - if (tar.name[0] == 0) { + if (tar.name[0] == 0 && tar.prefix[0] == 0) { if (end) { /* This is the second consecutive empty header! End of archive! * Read until the end to empty the pipe from gz or bz2 -- cgit v1.2.3