summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2008-09-23 17:06:43 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2008-09-23 17:06:43 +0000
commitc1b55e02b1f12f835ac17ae58b50d440df663f7f (patch)
tree0f057ea9f022096fdff1280d4ea6d4aa3c561a98
parent15abf5c4d987896957891ef78b14e0694b44fdb8 (diff)
downloadtar-c1b55e02b1f12f835ac17ae58b50d440df663f7f.tar.gz
ChangeLog
-rw-r--r--src/common.h3
-rw-r--r--src/names.c8
-rw-r--r--src/tar.c3
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;
diff --git a/src/tar.c b/src/tar.c
index 4680f467..67bb0be7 100644
--- a/src/tar.c
+++ b/src/tar.c
@@ -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 */