🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.bugs.usg
Article #225

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

#225
From: Guy Harris
Date: Tue, 24 Sep 1985 05:15
11 lines
1050 bytes
> /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
Technical Details
Message-ID: <2817@sun.uucp>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbosgd!ihnp4!ucbvax!decvax!decwrl!sun!guy
References: <668@bu-cs.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84 SMI; site sun.uucp
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbosgd!ihnp4!ucbvax!decvax!decwrl!sun!guy
From: guy@sun.uucp (Guy Harris)
Newsgroups: net.bugs.usg
Subject: Re: Not Necessarily a Bug (oh, yes it is!)
Message-ID: <2817@sun.uucp>
Date: Tue, 24-Sep-85 01:15:31 EDT
Article-I.D.: sun.2817
Posted: Tue Sep 24 01:15:31 1985
Date-Received: Thu, 26-Sep-85 06:21:09 EDT
References: <668@bu-cs.UUCP>
Organization: Sun Microsystems, Inc.
Lines: 11