diff options
author | steve <steve@FreeBSD.org> | 1997-05-05 03:45:17 +0000 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 1997-05-05 03:45:17 +0000 |
commit | ed817524a21c42f55897d40991432fe2e3cbb055 (patch) | |
tree | ef20e1ef2c6da2586553e7725af07eaa7642ebd3 /bin/sh | |
parent | a9a4dc76d0e75135e575d12ac41e8e5a5674dc8c (diff) | |
download | FreeBSD-src-ed817524a21c42f55897d40991432fe2e3cbb055.zip FreeBSD-src-ed817524a21c42f55897d40991432fe2e3cbb055.tar.gz |
Don't source $ENV unless this is an interactive shell.
Diffstat (limited to 'bin/sh')
-rw-r--r-- | bin/sh/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/sh/main.c b/bin/sh/main.c index 3929481..99b23eb 100644 --- a/bin/sh/main.c +++ b/bin/sh/main.c @@ -33,7 +33,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: main.c,v 1.13 1997/02/22 13:58:33 peter Exp $ */ #ifndef lint @@ -185,7 +185,7 @@ state1: } state2: state = 3; - if (privileged == 0) { + if (!privileged && iflag) { if ((shinit = lookupvar("ENV")) != NULL && *shinit != '\0') { state = 3; read_profile(shinit); |