Don't use h_errno at all; it doesn't work on all platforms (for
authorTheodore Tso <tytso@mit.edu>
Tue, 29 Sep 1998 23:26:19 +0000 (23:26 +0000)
committerTheodore Tso <tytso@mit.edu>
Tue, 29 Sep 1998 23:26:19 +0000 (23:26 +0000)
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

src/appl/user_user/ChangeLog
src/appl/user_user/client.c

index f9f76b81de92a3f75970c6fd6aaf432f7cf3c031..d26f5bbe00e0eac20d16539e2cdb11ae282ab28b 100644 (file)
@@ -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
index bd5c8a408a05a414f937a3a581674ba5d2e66e83..9fb0c7ad051d4561cd28e9521772352741f6ecdc 100644 (file)
@@ -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;
     }