Sergey Poznyakoff
4cf2af4500
Fix handling of filename-selection options.
...
Filename-selection options are --wildcards, --recursive, etc. (see
names.c for a complete list). These options are position-sensitive,
i.e. each such option affects all filenames and filename-selection
options that appear after it until eventually cancelled by a
corresponding counterpart option.
These options can appear in "file-from" file lists, which means that
they cannot be handled right away, but instead should be put on
the "name_elt" list and processed sequentionally, as file name arguments
are.
* src/common.h (warn_regex_usage): Remove.
(name_add_name): Change signature.
(name_add_dir, name_add_file): Remove prototypes.
* src/names.c (name_add_option, name_add_dir)
(name_add_file): Static functions.
(names_options, is_file_selection_option, names_parse_opt): Static functions.
(names_argp_children): New variable.
(NELT_NAME, NELT_CHDIR)
(NELT_FILE, NELT_NOOP): Redefine as enum nelt_type.
(NELT_FMASK): Remove.
(NELT_OPTION): New constant.
(name_elt) <type>: Change type.
<v.opt>: New member.
(name_elt_alloc_matflags): Remove.
(name_add_name): Take one argument.
(name_add_option): New static function.
(name_add_file): Take one argument.
(read_next_name): Use filename_terminator and
verbatim_files_from_option to initialize file.term and file.verbatim.
* src/tar.c: Move handling of filename-selection options to names.c
* tests/T-dir00.at: Fix typo.
* tests/T-recurse.at: Remove expected failure.
2015-12-11 00:50:23 +02:00
..
2014-01-30 13:54:15 +02:00
2015-12-06 00:14:55 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-02-14 13:03:58 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2015-08-24 13:05:52 +03:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2015-12-06 00:14:55 +02:00
2014-01-30 13:54:15 +02:00
2015-12-05 16:54:26 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-06-28 23:57:58 -07:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-07-22 03:34:20 +03:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2015-11-29 21:11:08 +02:00
2015-11-29 21:11:08 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-07-22 04:29:25 +03:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-12-10 04:34:02 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2015-12-10 14:55:34 +02:00
2015-11-02 13:00:39 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2015-12-06 22:02:16 +02:00
2015-12-06 21:18:51 +02:00
2014-01-30 13:54:15 +02:00
2015-11-21 21:56:49 +02:00
2015-11-21 21:56:49 +02:00
2015-11-21 21:56:49 +02:00
2015-11-21 21:56:49 +02:00
2015-11-21 21:56:49 +02:00
2014-02-13 23:58:35 +02:00
2014-01-30 13:54:15 +02:00
2014-02-13 23:58:35 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2015-12-10 14:55:34 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-07-27 23:27:28 +03:00
2014-07-27 23:27:28 +03:00
2014-07-27 23:27:28 +03:00
2014-07-27 23:27:28 +03:00
2014-07-27 23:27:28 +03:00
2015-11-11 13:01:45 +02:00
2014-07-27 23:27:28 +03:00
2014-07-27 23:27:28 +03:00
2015-11-11 13:01:45 +02:00
2014-01-30 13:54:15 +02:00
2014-04-29 14:22:59 -07:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2015-12-06 00:14:55 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-11-07 11:47:44 +02:00
2015-12-06 00:14:55 +02:00
2015-12-06 00:14:55 +02:00
2015-12-06 00:14:55 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2015-12-11 00:50:23 +02:00
2015-11-02 13:54:26 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2015-08-03 16:47:22 +03:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2015-12-11 00:50:23 +02:00
2014-01-30 13:54:15 +02:00
2015-12-10 14:55:34 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-07-22 04:29:25 +03:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00
2014-01-30 13:54:15 +02:00