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
+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).
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);