diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2008-09-23 17:06:43 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2008-09-23 17:06:43 +0000 |
commit | c1b55e02b1f12f835ac17ae58b50d440df663f7f (patch) | |
tree | 0f057ea9f022096fdff1280d4ea6d4aa3c561a98 | |
parent | 15abf5c4d987896957891ef78b14e0694b44fdb8 (diff) | |
download | tar-c1b55e02b1f12f835ac17ae58b50d440df663f7f.tar.gz |
ChangeLog
-rw-r--r-- | src/common.h | 3 | ||||
-rw-r--r-- | src/names.c | 8 | ||||
-rw-r--r-- | src/tar.c | 3 |
3 files changed, 5 insertions, 9 deletions
diff --git a/src/common.h b/src/common.h index f43673b3..91ae10cf 100644 --- a/src/common.h +++ b/src/common.h @@ -93,9 +93,6 @@ GLOBAL enum subcommand subcommand_option; /* Selected format for output archive. */ GLOBAL enum archive_format archive_format; -/* Either NL or NUL, as decided by the --null option. */ -GLOBAL char filename_terminator; - /* Size of each record, once in blocks, once in bytes. Those two variables are always related, the second being BLOCKSIZE times the first. They do not have _option in their name, even if their values is derived from diff --git a/src/names.c b/src/names.c index 73b87418..0c3aebfc 100644 --- a/src/names.c +++ b/src/names.c @@ -289,9 +289,8 @@ static int matching_flags; /* exclude_fnmatch options */ static storage and can't be relied upon across two calls. If CHANGE_DIRS is true, treat any entries of type NELT_CHDIR as - the request to change to the given directory. If filename_terminator - is NUL, CHANGE_DIRS is effectively always false. - + the request to change to the given directory. + Entries of type NELT_FMASK cause updates of the matching_flags value. */ struct name_elt * @@ -301,9 +300,6 @@ name_next_elt (int change_dirs) const char *source; char *cursor; - if (filename_terminator == '\0') - change_dirs = 0; - while (name_index != names) { struct name_elt *ep; @@ -1042,6 +1042,9 @@ report_textual_dates (struct tar_args *args) static volatile int _argp_hang; +/* Either NL or NUL, as decided by the --null option. */ +static char filename_terminator; + enum read_file_list_state /* Result of reading file name from the list file */ { file_list_success, /* OK, name read successfully */ |