diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-04-29 04:12:58 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-04-29 04:12:58 +0000 |
commit | 05efca90d22184a5c2fd1f1d61da9afe2f0ae2af (patch) | |
tree | f4de48bac1efc25e3e13385857c6ecb62b9b38e9 | |
parent | d93400bffb363463739ef7d4f63fb4b9a7a99a35 (diff) | |
download | busybox-w32-05efca90d22184a5c2fd1f1d61da9afe2f0ae2af.tar.gz busybox-w32-05efca90d22184a5c2fd1f1d61da9afe2f0ae2af.tar.bz2 busybox-w32-05efca90d22184a5c2fd1f1d61da9afe2f0ae2af.zip |
tar: fix obscure case when name is "" and prefix is not ""
-rw-r--r-- | archival/libunarchive/get_header_tar.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
112 | archive_handle->offset += 512; | 112 | archive_handle->offset += 512; |
113 | 113 | ||
114 | /* If there is no filename its an empty header */ | 114 | /* If there is no filename its an empty header */ |
115 | if (tar.name[0] == 0) { | 115 | if (tar.name[0] == 0 && tar.prefix[0] == 0) { |
116 | if (end) { | 116 | if (end) { |
117 | /* This is the second consecutive empty header! End of archive! | 117 | /* This is the second consecutive empty header! End of archive! |
118 | * Read until the end to empty the pipe from gz or bz2 | 118 | * Read until the end to empty the pipe from gz or bz2 |