summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Satiro <raysatiro@yahoo.com>2016-02-01 04:11:46 -0500
committerJay Satiro <raysatiro@yahoo.com>2016-02-01 04:11:46 -0500
commit2b6dadc52d38797ad52a7a117724f85be82a3889 (patch)
tree368a1eb21b971c724baae6c4be8f764acde07dc2
parent96596334c8d511565b751eb8913e1ee9817f2926 (diff)
downloadcurl-2b6dadc52d38797ad52a7a117724f85be82a3889.tar.gz
tool_operate: Don't sanitize --output path (Windows)
Due to path separators being incorrectly sanitized in --output pathnames, eg -o c:\foo => c__foo This is a partial revert of 3017d8a until I write a proper fix. The remote-name will continue to be sanitized, but if the user specified an --output with string replacement (#1, #2, etc) that data is unsanitized until I finish a fix. Bug: https://github.com/bagder/curl/issues/624 Reported-by: Octavio Schroeder
-rw-r--r--src/tool_operate.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/tool_operate.c b/src/tool_operate.c
index 272ebd4f7..b2d9d838e 100644
--- a/src/tool_operate.c
+++ b/src/tool_operate.c
@@ -563,17 +563,6 @@ static CURLcode operate_do(struct GlobalConfig *global,
char *storefile = outfile;
result = glob_match_url(&outfile, storefile, urls);
Curl_safefree(storefile);
-
-#if defined(MSDOS) || defined(WIN32)
- if(!result) {
- result = sanitize_file_name(&outfile);
- if(result) {
- Curl_safefree(outfile);
- goto show_error;
- }
- }
-#endif /* MSDOS || WIN32 */
-
if(result) {
/* bad globbing */
warnf(config->global, "bad output glob!\n");