From 5c08b1c4bddbe18a722dc2338fc0021465f50c2b Mon Sep 17 00:00:00 2001 From: Michael Elkins Date: Fri, 22 Dec 2000 15:24:55 +0000 Subject: [PATCH] set default MaxSize to 0 (unlimited) invert test for password being set after getpass() call (Magnus Jonsson ) --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index 4cd79d2..96343f4 100644 --- a/main.c +++ b/main.c @@ -293,7 +293,7 @@ main (int argc, char **argv) global.port = 143; global.box = "INBOX"; global.user = strdup (pw->pw_name); - global.max_size = 100000; + global.max_size = 0; #if HAVE_LIBSSL /* this will probably annoy people, but its the best default just in * case people forget to turn it on @@ -373,7 +373,7 @@ main (int argc, char **argv) { char *pass = getpass ("Password:"); - if (pass) + if (!pass) { puts ("Aborting, no password"); exit (1);