summaryrefslogtreecommitdiff
path: root/src/update.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/update.c')
-rw-r--r--src/update.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/update.c b/src/update.c
index eece0365..5424e2ce 100644
--- a/src/update.c
+++ b/src/update.c
@@ -42,6 +42,8 @@ bool time_to_start_writing;
first part of the record. */
char *output_start;
+static bool acting_as_filter;
+
/* Catenate file FILE_NAME to the archive without creating a header for it.
It had better be a tar file or the archive is screwed. */
static void
@@ -110,6 +112,7 @@ update_archive (void)
name_gather ();
open_archive (ACCESS_UPDATE);
+ acting_as_filter = strcmp (archive_name_array[0], "-") == 0;
xheader_forbid_global ();
while (!found_end)
@@ -166,7 +169,7 @@ update_archive (void)
}
}
- skip_member ();
+ skim_member (acting_as_filter);
break;
}