Apply ghudson's patch so that rlogin -a no longer dumps core.
authorGeoffrey King <gjking@mit.edu>
Mon, 27 Jul 1998 04:10:35 +0000 (04:10 +0000)
committerGeoffrey King <gjking@mit.edu>
Mon, 27 Jul 1998 04:10:35 +0000 (04:10 +0000)
[krb5-appl/612]

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10750 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/bsd/ChangeLog
src/appl/bsd/krlogin.c

index 1ccedefd456485e146d5645a3ab1f33ca62981be..2437fd01f9c7cebaa527aeb8c5feb016e2717f44 100644 (file)
@@ -1,3 +1,8 @@
+Mon Jul 27 00:06:20 1998  Geoffrey King  <gjking@mit.edu>
+
+       * krlogin.c (main): Apply ghudson's patch so that rlogin -a
+       no longer dumps core. [krb5-appl/612]
+
 1998-05-26  Theodore Ts'o  <tytso@rsts-11.mit.edu>
 
        * login.c (dolastlog): BSD 4.4 systems don't have lastlog.h, but
index baa9fb1a2219eea45297e72373f78d2fae680296..54d048b65a20025b082ee66f6809b6c07a1a286f 100644 (file)
@@ -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);