diff options
author | Michihiro NAKAJIMA <ggcueroad@gmail.com> | 2012-02-08 05:09:25 +0900 |
---|---|---|
committer | Michihiro NAKAJIMA <ggcueroad@gmail.com> | 2012-02-08 05:09:25 +0900 |
commit | b4d25a741c58200e1b48c5108140aedf8c1acccc (patch) | |
tree | 5b6cd2b0853bf904d91040bbc6976d1ef315da14 /tar/read.c | |
parent | c5356170ba6ae487ea7a1c80bb6d433eaf7715ec (diff) | |
download | libarchive-b4d25a741c58200e1b48c5108140aedf8c1acccc.tar.gz |
Rename archive_matching to archive_match.
Diffstat (limited to 'tar/read.c')
-rw-r--r-- | tar/read.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -158,7 +158,7 @@ read_archive(struct bsdtar *bsdtar, char mode, struct archive *writer) int r; while (*bsdtar->argv) { - if (archive_matching_include_pattern(bsdtar->matching, + if (archive_match_include_pattern(bsdtar->matching, *bsdtar->argv) != ARCHIVE_OK) lafe_errc(1, 0, "Error inclusion pattern: %s", archive_error_string(bsdtar->matching)); @@ -204,7 +204,7 @@ read_archive(struct bsdtar *bsdtar, char mode, struct archive *writer) for (;;) { /* Support --fast-read option */ if (bsdtar->option_fast_read && - archive_matching_path_unmatched_inclusions(bsdtar->matching) == 0) + archive_match_path_unmatched_inclusions(bsdtar->matching) == 0) break; r = archive_read_next_header(a, &entry); @@ -245,7 +245,7 @@ read_archive(struct bsdtar *bsdtar, char mode, struct archive *writer) * rewrite, there would be no way to exclude foo1/bar * while allowing foo2/bar.) */ - if (archive_matching_excluded(bsdtar->matching, entry)) + if (archive_match_excluded(bsdtar->matching, entry)) continue; /* Excluded by a pattern test. */ if (mode == 't') { @@ -450,11 +450,11 @@ unmatched_inclusions_warn(struct archive *matching, const char *msg) if (matching == NULL) return (0); - while ((r = archive_matching_path_unmatched_inclusions_next( + while ((r = archive_match_path_unmatched_inclusions_next( matching, &p)) == ARCHIVE_OK) lafe_warnc(0, "%s: %s", p, msg); if (r == ARCHIVE_FATAL) lafe_errc(1, errno, "Out of memory"); - return (archive_matching_path_unmatched_inclusions(matching)); + return (archive_match_path_unmatched_inclusions(matching)); } |