summaryrefslogtreecommitdiffstats
path: root/src/appl/user_user
diff options
context:
space:
mode:
authorTheodore Tso <tytso@mit.edu>1998-09-29 23:26:19 +0000
committerTheodore Tso <tytso@mit.edu>1998-09-29 23:26:19 +0000
commit8e7094c10bd6b3264ee495555775a93def4ac1e3 (patch)
tree0db0cd1eb4b74f4364b16bcdc059f89b836a0a38 /src/appl/user_user
parent1dfed1c1bd2801ea34005c320612ad6130f4759c (diff)
downloadkrb5-8e7094c10bd6b3264ee495555775a93def4ac1e3.tar.gz
krb5-8e7094c10bd6b3264ee495555775a93def4ac1e3.tar.xz
krb5-8e7094c10bd6b3264ee495555775a93def4ac1e3.zip
Don't use h_errno at all; it doesn't work on all platforms (for
example HPUX), and it's just not worth the effort to disambiguate between the different reasons why gethostbyname() might have failed. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10948 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/appl/user_user')
-rw-r--r--src/appl/user_user/ChangeLog7
-rw-r--r--src/appl/user_user/client.c7
2 files changed, 8 insertions, 6 deletions
diff --git a/src/appl/user_user/ChangeLog b/src/appl/user_user/ChangeLog
index f9f76b81de..d26f5bbe00 100644
--- a/src/appl/user_user/ChangeLog
+++ b/src/appl/user_user/ChangeLog
@@ -1,3 +1,10 @@
+Tue Sep 29 18:58:46 1998 Theodore Y. Ts'o <tytso@mit.edu>
+
+ * client.c (main): Don't use h_errno at all; it doesn't work on
+ all platforms (for example HPUX), and it's just not worth
+ the effort to disambiguate between the different reasons
+ why gethostbyname() might have failed.
+
1998-07-05 <hartmans@fundsxpress.com>
* client.c (main): do not declare h_errno
diff --git a/src/appl/user_user/client.c b/src/appl/user_user/client.c
index bd5c8a408a..9fb0c7ad05 100644
--- a/src/appl/user_user/client.c
+++ b/src/appl/user_user/client.c
@@ -83,12 +83,7 @@ char *argv[];
if ((host = gethostbyname (argv[1])) == NULL)
{
-
-
- if (h_errno == HOST_NOT_FOUND)
- fprintf (stderr, "uu-client: unknown host \"%s\".\n", argv[1]);
- else
- fprintf (stderr, "uu-client: can't get address of host \"%s\".\n", argv[1]);
+ fprintf (stderr, "uu-client: can't get address of host \"%s\".\n", argv[1]);
return 3;
}