diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2003-11-20 10:47:06 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2003-11-20 10:47:06 +0000 |
commit | e857122c97b934a00252889a978db69d4e774df7 (patch) | |
tree | 896833c6053b6159ea1d83f4eac19145a0e67652 /archival/libunarchive | |
parent | d9c8ab40a485aa8a7fae92a5d2bbada0e7513ef3 (diff) | |
download | busybox-w32-e857122c97b934a00252889a978db69d4e774df7.tar.gz busybox-w32-e857122c97b934a00252889a978db69d4e774df7.tar.bz2 busybox-w32-e857122c97b934a00252889a978db69d4e774df7.zip |
Fix tar-handles-nested-exclude testcase
Diffstat (limited to 'archival/libunarchive')
-rw-r--r-- | archival/libunarchive/get_header_tar.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/archival/libunarchive/get_header_tar.c b/archival/libunarchive/get_header_tar.c index 5354af8d7..d55189f42 100644 --- a/archival/libunarchive/get_header_tar.c +++ b/archival/libunarchive/get_header_tar.c | |||
@@ -106,6 +106,14 @@ extern char get_header_tar(archive_handle_t *archive_handle) | |||
106 | file_header->name = concat_path_file(tar.formated.prefix, tar.formated.name); | 106 | file_header->name = concat_path_file(tar.formated.prefix, tar.formated.name); |
107 | } | 107 | } |
108 | 108 | ||
109 | { /* Strip trailing '/' in directories */ | ||
110 | char *tmp = last_char_is(file_header->name, '/'); | ||
111 | if (tmp) { | ||
112 | *tmp = '\0'; | ||
113 | } | ||
114 | } | ||
115 | |||
116 | |||
109 | file_header->mode = strtol(tar.formated.mode, NULL, 8); | 117 | file_header->mode = strtol(tar.formated.mode, NULL, 8); |
110 | file_header->uid = strtol(tar.formated.uid, NULL, 8); | 118 | file_header->uid = strtol(tar.formated.uid, NULL, 8); |
111 | file_header->gid = strtol(tar.formated.gid, NULL, 8); | 119 | file_header->gid = strtol(tar.formated.gid, NULL, 8); |