Blame SOURCES/tar-1.26-allow-extract-single-volume.patch
|
|
b77676 |
diff --git a/src/extract.c b/src/extract.c
|
|
|
b77676 |
index 87b383a..340beea 100644
|
|
|
b77676 |
--- a/src/extract.c
|
|
|
b77676 |
+++ b/src/extract.c
|
|
|
b77676 |
@@ -1415,6 +1415,13 @@ extract_failure (char *file_name, int typeflag)
|
|
|
b77676 |
return 1;
|
|
|
b77676 |
}
|
|
|
b77676 |
|
|
|
b77676 |
+static int
|
|
|
b77676 |
+extract_skip (char *file_name, int typeflag)
|
|
|
b77676 |
+{
|
|
|
b77676 |
+ skip_member ();
|
|
|
b77676 |
+ return 0;
|
|
|
b77676 |
+}
|
|
|
b77676 |
+
|
|
|
b77676 |
typedef int (*tar_extractor_t) (char *file_name, int typeflag);
|
|
|
b77676 |
|
|
|
b77676 |
|
|
|
b77676 |
@@ -1495,7 +1502,7 @@ prepare_to_extract (char const *file_name, int typeflag, tar_extractor_t *fun)
|
|
|
b77676 |
ERROR ((0, 0,
|
|
|
b77676 |
_("%s: Cannot extract -- file is continued from another volume"),
|
|
|
b77676 |
quotearg_colon (current_stat_info.file_name)));
|
|
|
b77676 |
- *fun = extract_failure;
|
|
|
b77676 |
+ *fun = extract_skip;
|
|
|
b77676 |
break;
|
|
|
b77676 |
|
|
|
b77676 |
case GNUTYPE_LONGNAME:
|