From bfcdeedb5ac12652b7d8a2b528d782792df6b566 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Fri, 14 Sep 2001 02:06:02 +0000 Subject: [PATCH] * krlogin.c (try_normal): Permit "rsh" as well as "rlogin" as the program name, for detecting when argv[0] is not the hostname. If argv[0] isn't the hostname, always replace it with the system rlogin pathname. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13747 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/bsd/ChangeLog | 7 +++++++ src/appl/bsd/krlogin.c | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/appl/bsd/ChangeLog b/src/appl/bsd/ChangeLog index 0b2e2219d..8a6f53aea 100644 --- a/src/appl/bsd/ChangeLog +++ b/src/appl/bsd/ChangeLog @@ -1,3 +1,10 @@ +2001-09-13 Ken Raeburn + + * krlogin.c (try_normal): Permit "rsh" as well as "rlogin" as the + program name, for detecting when argv[0] is not the hostname. + If argv[0] isn't the hostname, always replace it with the system + rlogin pathname. + 2001-09-01 Ken Raeburn * Makefile.in (SRCS): Use $(srcdir). diff --git a/src/appl/bsd/krlogin.c b/src/appl/bsd/krlogin.c index 3f72d9df4..88151d9ed 100644 --- a/src/appl/bsd/krlogin.c +++ b/src/appl/bsd/krlogin.c @@ -1815,8 +1815,8 @@ void try_normal(argv) nhost++; else nhost = argv[0]; - if (!strcmp(nhost, "rlogin")) - argv++; + if (!strcmp(nhost, "rlogin") || !strcmp(nhost, "rsh")) + argv[0] = UCB_RLOGIN; #ifdef POSIX_SIGNALS sigemptyset(&mask); -- 2.26.2