aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJay Satiro <raysatiro@yahoo.com>2016-02-08 15:09:42 -0500
committerJay Satiro <raysatiro@yahoo.com>2016-02-08 15:09:42 -0500
commitc3aac489195526c23190fcfe4ce63cbe49ea00e6 (patch)
treeffacaf18d4fed500871e60bc601d65419ac27b5f /src
parent18c735e790e47a1199f9dd71a01aa9847d6474b1 (diff)
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: https://github.com/curl/curl/commit/4520534#commitcomment-15954863 Reported-by: Gisle Vanem
Diffstat (limited to 'src')
-rw-r--r--src/tool_urlglob.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tool_urlglob.c b/src/tool_urlglob.c
index 39cb32d6c..f1dd27fad 100644
--- a/src/tool_urlglob.c
+++ b/src/tool_urlglob.c
@@ -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;