tar: fix files skipped with --strip_components not resetting selinux context
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
f167e4503d
commit
537389cedd
@ -8,7 +8,6 @@
|
|||||||
|
|
||||||
void FAST_FUNC data_extract_all(archive_handle_t *archive_handle)
|
void FAST_FUNC data_extract_all(archive_handle_t *archive_handle)
|
||||||
{
|
{
|
||||||
|
|
||||||
file_header_t *file_header = archive_handle->file_header;
|
file_header_t *file_header = archive_handle->file_header;
|
||||||
int dst_fd;
|
int dst_fd;
|
||||||
int res;
|
int res;
|
||||||
@ -44,7 +43,7 @@ void FAST_FUNC data_extract_all(archive_handle_t *archive_handle)
|
|||||||
dst_name = strchr(dst_name, '/');
|
dst_name = strchr(dst_name, '/');
|
||||||
if (!dst_name || dst_name[1] == '\0') {
|
if (!dst_name || dst_name[1] == '\0') {
|
||||||
data_skip(archive_handle);
|
data_skip(archive_handle);
|
||||||
return;
|
goto ret;
|
||||||
}
|
}
|
||||||
dst_name++;
|
dst_name++;
|
||||||
/*
|
/*
|
||||||
@ -60,7 +59,7 @@ void FAST_FUNC data_extract_all(archive_handle_t *archive_handle)
|
|||||||
hard_link = strchr(hard_link, '/');
|
hard_link = strchr(hard_link, '/');
|
||||||
if (!hard_link || hard_link[1] == '\0') {
|
if (!hard_link || hard_link[1] == '\0') {
|
||||||
data_skip(archive_handle);
|
data_skip(archive_handle);
|
||||||
return;
|
goto ret;
|
||||||
}
|
}
|
||||||
hard_link++;
|
hard_link++;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user