summaryrefslogtreecommitdiff
path: root/rpmio/url.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-07-14 11:15:30 +0300
committerPanu Matilainen <pmatilai@redhat.com>2009-07-14 11:15:30 +0300
commit0114bb51dd85dc4a875d5b9f8f9775a05ecd4187 (patch)
treed01f3f31e191bbfbc86b33af3cee10e95dc29ced /rpmio/url.c
parent666e26bd7a229063e6cab068c94b56e1b35e7ddb (diff)
downloadlibrpm-tizen-0114bb51dd85dc4a875d5b9f8f9775a05ecd4187.tar.gz
librpm-tizen-0114bb51dd85dc4a875d5b9f8f9775a05ecd4187.tar.bz2
librpm-tizen-0114bb51dd85dc4a875d5b9f8f9775a05ecd4187.zip
Dont treat filenames starting with - as stdin
Diffstat (limited to 'rpmio/url.c')
-rw-r--r--rpmio/url.c3
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;