aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2013-08-14 11:35:42 +0200
committerDaniel Stenberg <daniel@haxx.se>2013-08-14 11:39:04 +0200
commit0b4557f7666d6bd3d14a30901239233e5c175ff7 (patch)
tree91f291d43dd1ee5503fc2b500542b3c6050160aa /src
parent204126a5f1218b7ba02c0abbd9703ee79d0d0776 (diff)
curl: make --no-[option] work properly for several options
--create-dirs, --crlf, --socks5-gssapi-nec and --sasl-ir
Diffstat (limited to 'src')
-rw-r--r--src/tool_getparam.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tool_getparam.c b/src/tool_getparam.c
index 5eb2c9f83..c3d86931c 100644
--- a/src/tool_getparam.c
+++ b/src/tool_getparam.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -639,7 +639,7 @@ ParameterError getparameter(char *flag, /* f or -long-flag */
break;
case 'r': /* --create-dirs */
- config->create_dirs = TRUE;
+ config->create_dirs = toggle;
break;
case 's': /* --max-redirs */
@@ -661,7 +661,7 @@ ParameterError getparameter(char *flag, /* f or -long-flag */
case 'u': /* --crlf */
/* LF -> CRLF conversion? */
- config->crlf = TRUE;
+ config->crlf = toggle;
break;
case 'v': /* --stderr */
@@ -888,7 +888,7 @@ ParameterError getparameter(char *flag, /* f or -long-flag */
GetStr(&config->socks5_gssapi_service, nextarg);
break;
case '7': /* --socks5-gssapi-nec*/
- config->socks5_gssapi_nec = TRUE;
+ config->socks5_gssapi_nec = toggle;
break;
#endif
case '8': /* --proxy1.0 */
@@ -959,7 +959,7 @@ ParameterError getparameter(char *flag, /* f or -long-flag */
break;
}
case 'K': /* --sasl-ir */
- config->sasl_ir = TRUE;
+ config->sasl_ir = toggle;
break;
}
break;