From 0114bb51dd85dc4a875d5b9f8f9775a05ecd4187 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Tue, 14 Jul 2009 11:15:30 +0300 Subject: [PATCH] Dont treat filenames starting with - as stdin --- rpmio/url.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;