Allow --output to reserved dos device names without the device prefix
for backwards compatibility.
Example: --output NUL can be used instead of --output \\.\NUL
Bug: https://github.com/curl/curl/commit/
4520534#commitcomment-
15954863
Reported-by: Gisle Vanem
{
char *sanitized;
SANITIZEcode sc = sanitize_file_name(&sanitized, target,
- SANITIZE_ALLOW_PATH);
+ (SANITIZE_ALLOW_PATH |
+ SANITIZE_ALLOW_RESERVED));
Curl_safefree(target);
if(sc)
return CURLE_URL_MALFORMAT;