Samuel Listopad fixed -E to support "C:/path" (with forward slash) as well.

This commit is contained in:
Daniel Stenberg 2004-12-18 10:28:31 +00:00
parent d5be114c07
commit 497cc6bfaf

View File

@ -1756,7 +1756,7 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
#ifdef WIN32
if(ptr &&
(ptr == &nextarg[1]) &&
(nextarg[2] == '\\') &&
(nextarg[2] == '\\' || nextarg[2] == '/') &&
(isalpha((int)nextarg[0])) )
/* colon in the second column, followed by a backslash, and the
first character is an alphabetic letter: