diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-07-14 11:15:30 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-07-21 09:52:01 +0300 |
commit | e4609275e7d0920fc8314614fc76f9c683ec2cc1 (patch) | |
tree | f4f05fbd45e3081dd4b459bdddfbd098c56dad6e | |
parent | 7564a36f74dca4931cbf5793edf0398f7da0050d (diff) | |
download | rpm-e4609275e7d0920fc8314614fc76f9c683ec2cc1.tar.gz |
Dont treat filenames starting with - as stdin
(cherry picked from commit 0114bb51dd85dc4a875d5b9f8f9775a05ecd4187)
-rw-r--r-- | rpmio/url.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rpmio/url.c b/rpmio/url.c index fc069f4f0..316e850f2 100644 --- a/rpmio/url.c +++ b/rpmio/url.c @@ -72,7 +72,6 @@ static struct urlstring { { "hkp://", URL_IS_HKP }, { "http://", URL_IS_HTTP }, { "https://", URL_IS_HTTPS }, - { "-", URL_IS_DASH }, { NULL, URL_IS_UNKNOWN } }; @@ -86,6 +85,8 @@ urltype urlIsURL(const char * url) continue; return us->ret; } + if (strcmp(url, "-") == 0) + return URL_IS_DASH; } return URL_IS_UNKNOWN; |