From 9324f1c29f31e68ffb716e32450ce9f2f9239654 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 7 Jun 2009 22:21:22 +0000 Subject: - Eric Wong fixed --no-buffer to actually switch off output buffering. Been broken since 7.19.0 --- src/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/main.c b/src/main.c index 586d00e2a..b47dced06 100644 --- a/src/main.c +++ b/src/main.c @@ -2634,8 +2634,9 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */ } break; case 'N': - /* disable the output I/O buffering */ - config->nobuffer = (bool)(!toggle); + /* disable the output I/O buffering. note that the option is called + --buffer but is mostly used in the negative form: --no-buffer */ + config->nobuffer = (bool)(longopt ? !toggle : toggle); break; case 'O': /* --remote-name */ if(subletter == 'a') { /* --remote-name-all */ -- cgit v1.2.3