aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2000-06-28 11:04:34 +0000
committerEric S. Raymond <esr@thyrsus.com>2000-06-28 11:04:34 +0000
commit13f1b3693b5f5db62d91a03625eb7fd8aef201da (patch)
treefbd8e27de5b934e160bf008266e484ff86b784b8 /fetchmail.c
parent1b0445caadad8c59d0fc9ead943d4aa3f0f59275 (diff)
downloadfetchmail-13f1b3693b5f5db62d91a03625eb7fd8aef201da.tar.gz
fetchmail-13f1b3693b5f5db62d91a03625eb7fd8aef201da.tar.bz2
fetchmail-13f1b3693b5f5db62d91a03625eb7fd8aef201da.zip
Try to beat a sign-extension bug.
svn path=/trunk/; revision=2912
Diffstat (limited to 'fetchmail.c')
-rw-r--r--fetchmail.c5
1 files changed, 4 insertions, 1 deletions
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));
}
+ }
}
/*