mirror of
https://github.com/samba-team/samba.git
synced 2025-03-08 04:58:40 +03:00
r13535: Fix #2353 based on a patch by William Jojo.
Jeremy. (This used to be commit fe63a6ee06149195032320dd0fb9b6c7dfb460d3)
This commit is contained in:
parent
e9771ae0e0
commit
eca035db9a
@ -1698,8 +1698,8 @@ int tar_parseargs(int argc, char *argv[], const char *Optarg, int Optind)
|
||||
return 0;
|
||||
}
|
||||
newOptind++;
|
||||
Optind++;
|
||||
if (! read_inclusion_file(argv[Optind])) {
|
||||
/* Optind points at the tar output file, Optind+1 at the inclusion file. */
|
||||
if (! read_inclusion_file(argv[Optind+1])) {
|
||||
return 0;
|
||||
}
|
||||
} else if (Optind+1<argc && !tar_re_search) { /* For backwards compatibility */
|
||||
@ -1738,7 +1738,8 @@ int tar_parseargs(int argc, char *argv[], const char *Optarg, int Optind)
|
||||
newOptind += clipn;
|
||||
}
|
||||
|
||||
if (Optind+1<argc && tar_re_search) { /* Doing regular expression seaches */
|
||||
if (Optind+1<argc && tar_re_search && tar_clipfl != 'F') {
|
||||
/* Doing regular expression seaches not from an inclusion file. */
|
||||
clipn=argc-Optind-1;
|
||||
cliplist=argv+Optind+1;
|
||||
newOptind += clipn;
|
||||
|
Loading…
x
Reference in New Issue
Block a user