[962] in Athena Bugs

home help back first fref pref prev next nref lref last post

rsh.ucb

daemon@ATHENA.MIT.EDU (qjb@ATHENA.MIT.EDU)
Fri Sep 16 18:01:13 1988

From: <qjb@ATHENA.MIT.EDU>
Date: Fri, 16 Sep 88 18:00:30 EDT
To: henry@ATHENA.MIT.EDU
Cc: bugs@ATHENA.MIT.EDU

The point was to keep the original things around; the problem is that
if you do an rsh with no command argument (i.e. if you use rsh for
rlogin), it execs rlogin.  I suppose we should change rsh.ucb to exec
rlogin.ucb instead of rlogin...

(excerpt from /paris/source/4.3/ucb/rsh.ucb.c)

	if (argv[0] == 0) {
		if (asrsh)
			*argv0 = "rlogin";
		execv("/usr/ucb/rlogin", argv0);
		perror("/usr/ucb/rlogin");
		exit(1);
	}

should be 

	if (argv[0] == 0) {
		if (asrsh)
			*argv0 = "rlogin.ucb";
		execv("/usr/ucb/rlogin.ucb", argv0);
		perror("/usr/ucb/rlogin.ucb");
		exit(1);
	}

                                Jay Berkenbilt

home help back first fref pref prev next nref lref last post