Don't use h_errno, it's not fully portable, and it's not worth it
authorTheodore Tso <tytso@mit.edu>
Tue, 29 Sep 1998 23:26:45 +0000 (23:26 +0000)
committerTheodore Tso <tytso@mit.edu>
Tue, 29 Sep 1998 23:26:45 +0000 (23:26 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10949 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/gssftp/ftpd/ChangeLog
src/appl/gssftp/ftpd/ftpd.c

index a535839f9f497044db5a927c4283f9de1dc8d4ca..1984531d1bbe1938554d59e2c1a65008c4fe1d5d 100644 (file)
@@ -1,3 +1,8 @@
+Tue Sep 29 19:25:09 1998  Theodore Y. Ts'o  <tytso@mit.edu>
+
+       * ftpd.c (auth_data): Don't use h_errno, it's not fully portable,
+               and it's not worth it.
+
 1998-08-28  Geoffrey King  <gjking@mit.edu>
 
        * ftpd.c (login): New function.  Essentially, the old pass
index 7741eac84c8bf5b54b1f100a70f065931f4ef2aa..d31181af7fa9edc4aa09bd5ca8929770b2710cfb 100644 (file)
@@ -2058,8 +2058,8 @@ char *data;
                        return 0;
                }
                if (!(hp = gethostbyname(localname))) {
-                       reply(501, "couldn't canonicalize local hostname (%d)\n", h_errno);
-                       syslog(LOG_ERR, "Couldn't canonicalize local hostname (%d)", h_errno);
+                       reply(501, "couldn't canonicalize local hostname\n");
+                       syslog(LOG_ERR, "Couldn't canonicalize local hostname");
                        return 0;
                }
                strcpy(localname, hp->h_name);