Commit c3aac489 authored by Jay Satiro's avatar Jay Satiro
Browse files

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
parent 18c735e7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;