diff options
author | Ken Raeburn <raeburn@mit.edu> | 2001-09-14 02:06:02 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@mit.edu> | 2001-09-14 02:06:02 +0000 |
commit | bfcdeedb5ac12652b7d8a2b528d782792df6b566 (patch) | |
tree | 10abc70d4e1d8b3aa095d0b4873e8f3d02245c3d | |
parent | 76abc869860569dbb6bde8d67bc2ea85e35e7d14 (diff) | |
download | krb5-bfcdeedb5ac12652b7d8a2b528d782792df6b566.zip krb5-bfcdeedb5ac12652b7d8a2b528d782792df6b566.tar.gz krb5-bfcdeedb5ac12652b7d8a2b528d782792df6b566.tar.bz2 |
* 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
-rw-r--r-- | src/appl/bsd/ChangeLog | 7 | ||||
-rw-r--r-- | 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 0b2e221..8a6f53a 100644 --- a/src/appl/bsd/ChangeLog +++ b/src/appl/bsd/ChangeLog @@ -1,3 +1,10 @@ +2001-09-13 Ken Raeburn <raeburn@mit.edu> + + * 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 <raeburn@mit.edu> * Makefile.in (SRCS): Use $(srcdir). diff --git a/src/appl/bsd/krlogin.c b/src/appl/bsd/krlogin.c index 3f72d9d..88151d9 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); |