diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-07-08 20:14:24 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-07-08 20:14:24 +0000 |
commit | 1056cb12e0a90237dc87ead63ab2dfabf2282901 (patch) | |
tree | 4bf83c0bef097090bd3d715e4e6891c1324c4d5a /etrn.c | |
parent | b299fdde4341d1ab36bab62fbcc8217ed33348b1 (diff) | |
download | fetchmail-1056cb12e0a90237dc87ead63ab2dfabf2282901.tar.gz fetchmail-1056cb12e0a90237dc87ead63ab2dfabf2282901.tar.bz2 fetchmail-1056cb12e0a90237dc87ead63ab2dfabf2282901.zip |
Guenther Leber's error changes.
svn path=/trunk/; revision=1157
Diffstat (limited to 'etrn.c')
-rw-r--r-- | etrn.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -84,7 +84,8 @@ static int etrn_getrange(int sock, struct query *ctl, char *id, int *countp, if (gethostname(hname, sizeof hname) != 0) { /* exit with error message */ - error(5, errno, "gethostname"); + error(0, errno, "gethostname failed: "); + return PS_UNDEFINED; } /* in case we got a host basename (as we do in Linux), make a FQDN of it */ @@ -92,7 +93,8 @@ static int etrn_getrange(int sock, struct query *ctl, char *id, int *countp, if (hp == (struct hostent *) NULL) { /* exit with error message */ - error(5, 0, "gethostbyname"); + error(0, 0, "gethostbyname failed for %s", hname); + return PS_TRANSIENT; } /* here it is */ qname = hp->h_name; |