mirror of
https://github.com/curl/curl.git
synced 2026-05-17 04:46:26 +03:00
tool_urlglob: Allow reserved dos device names (Windows)
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: 4520534 (commitcomment-15954863)
Reported-by: Gisle Vanem
This commit is contained in:
parent
18c735e790
commit
c3aac48919
1 changed files with 2 additions and 1 deletions
|
|
@ -673,7 +673,8 @@ CURLcode glob_match_url(char **result, char *filename, URLGlob *glob)
|
|||
{
|
||||
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue