diff --git a/appl/ftp/ftp/ruserpass.c b/appl/ftp/ftp/ruserpass.c index 99d56c4a1..22cee4b99 100644 --- a/appl/ftp/ftp/ruserpass.c +++ b/appl/ftp/ftp/ruserpass.c @@ -70,7 +70,7 @@ ruserpass(char *host, char **aname, char **apass, char **aacct) int t, i, c, usedefault = 0; struct stat stb; - if(k_gethostname(myhostname, MaxHostNameLen) < 0) + if(gethostname(myhostname, MaxHostNameLen) < 0) strcpy(myhostname, ""); if((mydomain = strchr(myhostname, '.')) == NULL) mydomain = myhostname; diff --git a/appl/ftp/ftpd/ftpd.c b/appl/ftp/ftpd/ftpd.c index 5abcf376a..e0d8d1f3f 100644 --- a/appl/ftp/ftpd/ftpd.c +++ b/appl/ftp/ftpd/ftpd.c @@ -489,7 +489,7 @@ main(int argc, char **argv) fclose(fd); /* reply(220,) must follow */ } - k_gethostname(hostname, sizeof(hostname)); + gethostname(hostname, sizeof(hostname)); reply(220, "%s FTP server (%s+%s) ready.", hostname, version, krb4_version); setjmp(errcatch); diff --git a/appl/telnet/libtelnet/krb4encpwd.c b/appl/telnet/libtelnet/krb4encpwd.c index 395e4c177..c96b319d8 100644 --- a/appl/telnet/libtelnet/krb4encpwd.c +++ b/appl/telnet/libtelnet/krb4encpwd.c @@ -158,7 +158,7 @@ krb4encpwd_init(ap, server) str_data[3] = TELQUAL_REPLY; } else { str_data[3] = TELQUAL_IS; - k_gethostname(hostname, sizeof(hostname)); + gethostname(hostname, sizeof(hostname)); realm = krb_realmofhost(hostname); cp = strchr(hostname, '.'); if (*cp != NULL) *cp = NULL; @@ -209,7 +209,7 @@ krb4encpwd_is(ap, data, cnt) case KRB4_ENCPWD_AUTH: memmove(auth.dat, data, auth.length = cnt); - k_gethostname(lhostname, sizeof(lhostname)); + gethostname(lhostname, sizeof(lhostname)); if ((cp = strchr(lhostname, '.')) != 0) *cp = '\0'; if (r = krb_rd_encpwd_req(&auth, KRB_SERVICE_NAME, lhostname, 0, &adat, NULL, challenge, r_user, r_passwd)) { @@ -301,7 +301,7 @@ krb4encpwd_reply(ap, data, cnt) * Verify that the response to the challenge is correct. */ - k_gethostname(hostname, sizeof(hostname)); + gethostname(hostname, sizeof(hostname)); realm = krb_realmofhost(hostname); memmove(challenge, data, cnt); memset(user_passwd, 0, sizeof(user_passwd)); diff --git a/appl/telnet/libtelnet/rsaencpwd.c b/appl/telnet/libtelnet/rsaencpwd.c index 3f4c03e20..765296728 100644 --- a/appl/telnet/libtelnet/rsaencpwd.c +++ b/appl/telnet/libtelnet/rsaencpwd.c @@ -157,7 +157,7 @@ rsaencpwd_init(ap, server) if (server) { str_data[3] = TELQUAL_REPLY; memset(key_file, 0, sizeof(key_file)); - k_gethostname(lhostname, sizeof(lhostname)); + gethostname(lhostname, sizeof(lhostname)); if ((cp = strchr(lhostname, '.')) != 0) *cp = '\0'; strcpy(key_file, "/etc/."); strcat(key_file, lhostname); diff --git a/appl/telnet/libtelnet/spx.c b/appl/telnet/libtelnet/spx.c index 22d3cca33..5832e99ba 100644 --- a/appl/telnet/libtelnet/spx.c +++ b/appl/telnet/libtelnet/spx.c @@ -172,7 +172,7 @@ spx_init(ap, server) if (server) { str_data[3] = TELQUAL_REPLY; - k_gethostname(lhostname, sizeof(lhostname)); + gethostname(lhostname, sizeof(lhostname)); strcpy(targ_printable, "SERVICE:rcmd@"); strcat(targ_printable, lhostname); input_name_buffer.length = strlen(targ_printable); @@ -322,7 +322,7 @@ spx_is(ap, data, cnt) input_token.length = cnt; input_token.value = (char *) data; - k_gethostname(lhostname, sizeof(lhostname)); + gethostname(lhostname, sizeof(lhostname)); strcpy(targ_printable, "SERVICE:rcmd@"); strcat(targ_printable, lhostname);