From: Geoffrey King Date: Mon, 27 Jul 1998 04:10:35 +0000 (+0000) Subject: Apply ghudson's patch so that rlogin -a no longer dumps core. X-Git-Tag: krb5-1.1-beta1~621 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=332a02f9761d553da6b0ffa8bdba2d9f6bd94795;p=krb5.git Apply ghudson's patch so that rlogin -a no longer dumps core. [krb5-appl/612] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10750 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/bsd/ChangeLog b/src/appl/bsd/ChangeLog index 1ccedefd4..2437fd01f 100644 --- a/src/appl/bsd/ChangeLog +++ b/src/appl/bsd/ChangeLog @@ -1,3 +1,8 @@ +Mon Jul 27 00:06:20 1998 Geoffrey King + + * krlogin.c (main): Apply ghudson's patch so that rlogin -a + no longer dumps core. [krb5-appl/612] + 1998-05-26 Theodore Ts'o * login.c (dolastlog): BSD 4.4 systems don't have lastlog.h, but diff --git a/src/appl/bsd/krlogin.c b/src/appl/bsd/krlogin.c index baa9fb1a2..54d048b65 100644 --- a/src/appl/bsd/krlogin.c +++ b/src/appl/bsd/krlogin.c @@ -568,7 +568,7 @@ main(argc, argv) authopts |= OPTS_FORWARDABLE_CREDS; status = kcmd(&sock, &host, debug_port, - null_local_username ? NULL : pwd->pw_name, + null_local_username ? "" : pwd->pw_name, name ? name : pwd->pw_name, term, 0, "host", krb_realm, &cred, @@ -582,7 +582,7 @@ main(argc, argv) #ifdef KRB5_KRB4_COMPAT fprintf(stderr, "Trying krb4 rlogin...\n"); status = k4cmd(&sock, &host, debug_port, - null_local_username ? NULL : pwd->pw_name, + null_local_username ? "" : pwd->pw_name, name ? name : pwd->pw_name, term, 0, &v4_ticket, "rcmd", krb_realm, &v4_cred, v4_schedule, &v4_msg_data, &local, &foreign, @@ -599,10 +599,10 @@ main(argc, argv) #else rem = rcmd(&host, debug_port, - null_local_username ? NULL : pwd->pw_name, + null_local_username ? "" : pwd->pw_name, name ? name : pwd->pw_name, term, 0); #endif /* KERBEROS */ - + if (rem < 0) exit(1);