From 13f1b3693b5f5db62d91a03625eb7fd8aef201da Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 28 Jun 2000 11:04:34 +0000 Subject: Try to beat a sign-extension bug. svn path=/trunk/; revision=2912 --- fetchmail.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'fetchmail.c') diff --git a/fetchmail.c b/fetchmail.c index 0dfc7e41..f2f3cff6 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -44,6 +44,7 @@ #include "getopt.h" #include "fetchmail.h" +#include "socket.h" #include "tunable.h" #include "smtp.h" #include "netrc.h" @@ -482,10 +483,11 @@ int main(int argc, char **argv) && ctl->server.protocol != P_IMAP_GSS #endif /* GSSAPI */ && !ctl->password) + { if (!isatty(0)) { fprintf(stderr, - _("fetchmail: can't find a password for %s@s.\n"), + _("fetchmail: can't find a password for %s@%s.\n"), ctl->remotename, ctl->server.pollname); return(PS_AUTHFAIL); } @@ -500,6 +502,7 @@ int main(int argc, char **argv) ctl->remotename, ctl->server.pollname); ctl->password = xstrdup((char *)fm_getpassword(tmpbuf)); } + } } /* -- cgit v1.2.3