Dont treat filenames starting with - as stdin
This commit is contained in:
parent
666e26bd7a
commit
0114bb51dd
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue