X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2Fupdate.c;h=4002844ffad64594876f728f2837e219ce735495;hb=6e36ce5668fdaf3e710ec29b3082c9a1f5c27de5;hp=5982b9ffe313976a51ed5f993144b31f9198e033;hpb=4dd9bd50bdcf78b6fbe86cb1153579d3fe57334b;p=chaz%2Ftar diff --git a/src/update.c b/src/update.c index 5982b9f..4002844 100644 --- a/src/update.c +++ b/src/update.c @@ -30,7 +30,7 @@ extern union block *current_block; /* We've hit the end of the old stuff, and its time to start writing new stuff to the tape. This involves seeking back one record and re-writing the current record (which has been changed). */ -int time_to_start_writing = 0; +int time_to_start_writing; /* Pointer to where we started to write in the first record we write out. This is used if we can't backspace the output and have to null out the @@ -72,8 +72,7 @@ append_file (char *path) buffer_size = bytes_left; status = buffer_size % BLOCKSIZE; if (status) - memset (start->buffer + bytes_left, 0, - (size_t) (BLOCKSIZE - status)); + memset (start->buffer + bytes_left, 0, BLOCKSIZE - status); } status = safe_read (handle, start->buffer, buffer_size); @@ -188,6 +187,8 @@ update_archive (void) while (path = name_from_list (), path) { + if (excluded_name (path)) + continue; if (interactive_option && !confirm ("add", path)) continue; if (subcommand_option == CAT_SUBCOMMAND)