aboutsummaryrefslogtreecommitdiff
path: root/lib/tar
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-06-21 14:09:39 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-06-21 14:09:39 +0200
commitbcd172662aaec169765bce7c4029cbf5e1c28441 (patch)
tree2cb8e8670e359b5809922b2159e503dc1cf06f6c /lib/tar
parent55bc6a7547f5a0c3668809a4bb5444555100d0f1 (diff)
fix: flipped conditional in tar header parser
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/tar')
-rw-r--r--lib/tar/read_header.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tar/read_header.c b/lib/tar/read_header.c
index bdb2d20..131f5dc 100644
--- a/lib/tar/read_header.c
+++ b/lib/tar/read_header.c
@@ -223,7 +223,7 @@ static int decode_header(const tar_header_t *hdr, unsigned int set_by_pax,
size_t count;
if (!(set_by_pax & PAX_NAME)) {
- if (hdr->prefix[0] == '\0') {
+ if (hdr->prefix[0] != '\0') {
count = strlen(hdr->name) + 1;
count += strlen(hdr->prefix) + 1;