aboutsummaryrefslogtreecommitdiffstats
path: root/etrn.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-07-08 20:14:24 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-07-08 20:14:24 +0000
commit1056cb12e0a90237dc87ead63ab2dfabf2282901 (patch)
tree4bf83c0bef097090bd3d715e4e6891c1324c4d5a /etrn.c
parentb299fdde4341d1ab36bab62fbcc8217ed33348b1 (diff)
downloadfetchmail-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.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/etrn.c b/etrn.c
index d831c29f..2d6ef711 100644
--- a/etrn.c
+++ b/etrn.c
@@ -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;