]> granicus.if.org Git - curl/commitdiff
curl tool: Exclude SMB from the protocol redirect
authorSteve Holme <steve_holme@hotmail.com>
Sun, 30 Nov 2014 21:28:22 +0000 (21:28 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Sun, 30 Nov 2014 21:39:04 +0000 (21:39 +0000)
As local files could be accessed through \\localhost\c$.

src/tool_cfgable.c

index bd8707e575234c8413a55554d0a03788be9960da..fd62e4b24174e01678dae25bc852e88a5c96737c 100644 (file)
@@ -36,8 +36,9 @@ void config_init(struct OperationConfig* config)
   config->maxredirs = DEFAULT_MAXREDIRS;
   config->proto = CURLPROTO_ALL; /* FIXME: better to read from library */
   config->proto_present = FALSE;
-  config->proto_redir =
-    CURLPROTO_ALL & ~(CURLPROTO_FILE|CURLPROTO_SCP); /* not FILE or SCP */
+  config->proto_redir = CURLPROTO_ALL & /* All except FILE, SCP and SMB */
+                        ~(CURLPROTO_FILE | CURLPROTO_SCP | CURLPROTO_SMB |
+                          CURLPROTO_SMBS);
   config->proto_redir_present = FALSE;
 }