projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Errstring() now will print out a message for the Name Server error
[unix-history]
/
usr
/
src
/
usr.sbin
/
sendmail
/
src
/
err.c
diff --git
a/usr/src/usr.sbin/sendmail/src/err.c
b/usr/src/usr.sbin/sendmail/src/err.c
index
12d3566
..
95f37a2
100644
(file)
--- a/
usr/src/usr.sbin/sendmail/src/err.c
+++ b/
usr/src/usr.sbin/sendmail/src/err.c
@@
-9,11
+9,12
@@
*/
#ifndef lint
*/
#ifndef lint
-static char SccsId[] = "@(#)err.c 5.
6
(Berkeley) %G%";
+static char SccsId[] = "@(#)err.c 5.
7
(Berkeley) %G%";
#endif not lint
# include "sendmail.h"
# include <errno.h>
#endif not lint
# include "sendmail.h"
# include <errno.h>
+# include <netdb.h>
/*
** SYSERR -- Print error message.
/*
** SYSERR -- Print error message.
@@
-352,6
+353,10
@@
errstring(errno)
break;
(void) sprintf(buf, "Connection refused by %s", CurHostName);
return (buf);
break;
(void) sprintf(buf, "Connection refused by %s", CurHostName);
return (buf);
+
+ case (TRY_AGAIN+MAX_ERRNO):
+ (void) sprintf(buf, "Host Name Lookup Failure");
+ return (buf);
}
# endif VMUNIX
# endif DAEMON
}
# endif VMUNIX
# endif DAEMON