Skip site navigation (1)Skip section navigation (2)
Date:      01 May 1997 06:23:19 +0100
From:      Andrew Gierth <andrew@erlenstar.demon.co.uk>
To:        hackers@freebsd.org
Subject:   /bin/sh -c and ENV
Message-ID:  <87rafr6a0o.fsf@erlenstar.demon.co.uk>

next in thread | raw e-mail | index | archive | help
Running RELENG-2.2 as of a few days ago.

Just noticed that /bin/sh is executing the ENV file even when invoked with
the -c option. Is this a bug or a feature? :-)

(Executing the ENV file in calls to system(3) or popen(3) could be considered
a Bad Thing, even in non-suid programs, and the last system I used where
system and popen invoked a Posix shell specifically disabled the ENV file
if the -c option was used.)

-- 
Andrew.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87rafr6a0o.fsf>