diff options
author | Denis Vlasenko | 2008-04-29 04:12:58 +0000 |
---|---|---|
committer | Denis Vlasenko | 2008-04-29 04:12:58 +0000 |
commit | 05efca90d22184a5c2fd1f1d61da9afe2f0ae2af (patch) | |
tree | f4de48bac1efc25e3e13385857c6ecb62b9b38e9 /archival | |
parent | d93400bffb363463739ef7d4f63fb4b9a7a99a35 (diff) | |
download | busybox-05efca90d22184a5c2fd1f1d61da9afe2f0ae2af.zip busybox-05efca90d22184a5c2fd1f1d61da9afe2f0ae2af.tar.gz |
tar: fix obscure case when name is "" and prefix is not ""
Diffstat (limited to 'archival')
-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 9134d6d..29aed18 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 |