Not Necessarily a Bug (oh, yes it is!)

Guy Harris guy at sun.uucp
Tue Sep 24 15:15:31 AEST 1985


> /bin/sh in SYSVR2 will look for the character 'r' *anywhere* in it's
> argv[0] when it starts up and, upon finding one, will run in restricted
> mode.

Some version of the Bourne shell (I think it was the one that results from
applying all the changes Arnold Robbins posted) specifically checks for
"rsh" being the basename of argv[0].  Any other check is incorrect; the
"if (strchr(argv[0], 'r') != NULL)" check is bogus and the result of
laziness.  The fix is straightforward.

	Guy Harris



More information about the Net.bugs.usg mailing list