| 463 | } |
| 464 | |
| 465 | static void parse_pathspec_arg(const char **pathspec, |
| 466 | struct archiver_args *ar_args) |
| 467 | { |
| 468 | /* |
| 469 | * must be consistent with parse_pathspec in path_exists() |
| 470 | * Also if pathspec patterns are dependent, we're in big |
| 471 | * trouble as we test each one separately |
| 472 | */ |
| 473 | parse_pathspec(&ar_args->pathspec, 0, PATHSPEC_PREFER_CWD, |
| 474 | ar_args->prefix, pathspec); |
| 475 | ar_args->pathspec.recursive = 1; |
| 476 | if (pathspec) { |
| 477 | while (*pathspec) { |
| 478 | if (**pathspec && !path_exists(ar_args, *pathspec)) |
| 479 | die(_("pathspec '%s' did not match any files"), *pathspec); |
| 480 | pathspec++; |
| 481 | } |
| 482 | } |
| 483 | } |
| 484 | |
| 485 | static void parse_treeish_arg(const char **argv, |
| 486 | struct archiver_args *ar_args, int remote) |
no test coverage detected