summaryrefslogtreecommitdiff
path: root/rpmio/rpmglob.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2012-05-31 15:40:51 +0300
committerPanu Matilainen <pmatilai@redhat.com>2012-05-31 16:45:32 +0300
commit38932d1d175b8ff8a509d2d9995ffb3eb576ff3a (patch)
tree89924a83fefae28953ad4364bde17eee0108c1b6 /rpmio/rpmglob.c
parenta6821de78318570df9c6a86cd34db4bd037b48a2 (diff)
downloadrpm-38932d1d175b8ff8a509d2d9995ffb3eb576ff3a.tar.gz
Export our own version of glob_pattern_p() as rpmIsGlob()
- Further preliminaries to hiding the glob() implementation
Diffstat (limited to 'rpmio/rpmglob.c')
-rw-r--r--rpmio/rpmglob.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/rpmio/rpmglob.c b/rpmio/rpmglob.c
index d5fadbac6..2332ded55 100644
--- a/rpmio/rpmglob.c
+++ b/rpmio/rpmglob.c
@@ -54,7 +54,7 @@ int rpmGlob(const char * patterns, int * argcPtr, ARGV_t * argvPtr)
int dir_only = (plen > 0 && path[plen-1] == '/');
glob_t gl;
- if (!local || (!glob_pattern_p(av[j], 0) && strchr(path, '~') == NULL)) {
+ if (!local || (!rpmIsGlob(av[j], 0) && strchr(path, '~') == NULL)) {
argvAdd(&argv, av[j]);
continue;
}
@@ -146,3 +146,7 @@ exit:
return rc;
}
+int rpmIsGlob(const char * pattern, int quote)
+{
+ return glob_pattern_p(pattern, quote);
+}