diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2007-10-01 14:29:10 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2007-10-01 14:29:10 +0300 |
commit | 8c7b929a14cc7118b7eb046bc2b5bc184b7c2f06 (patch) | |
tree | 8099a288e3da2778c98f1cf01221ce509918e090 /rpmio | |
parent | 343effc65f1b388abe4f3a68af10a27f34b4feb5 (diff) | |
download | rpm-8c7b929a14cc7118b7eb046bc2b5bc184b7c2f06.tar.gz rpm-8c7b929a14cc7118b7eb046bc2b5bc184b7c2f06.tar.bz2 rpm-8c7b929a14cc7118b7eb046bc2b5bc184b7c2f06.zip |
Never glob non-local paths in rpmGlob()
Diffstat (limited to 'rpmio')
-rw-r--r-- | rpmio/macro.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rpmio/macro.c b/rpmio/macro.c index 04f3b81ff..9f6c21f8c 100644 --- a/rpmio/macro.c +++ b/rpmio/macro.c @@ -1572,9 +1572,10 @@ int rpmGlob(const char * patterns, int * argcPtr, const char *** argvPtr) const char * globURL; const char * path; int ut = urlPath(av[j], &path); + int local = (ut == URL_IS_PATH) || (ut == URL_IS_UNKNOWN); glob_t gl; - if (!Glob_pattern_p(av[j], 0) && strchr(path, '~') == NULL) { + if (!local || (!Glob_pattern_p(av[j], 0) && strchr(path, '~') == NULL)) { argv = xrealloc(argv, (argc+2) * sizeof(*argv)); argv[argc] = xstrdup(av[j]); if (_debug) |