mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-23 17:31:43 +01:00
Don't source $ENV unless this is an interactive shell.
This commit is contained in:
parent
542bfc7624
commit
2afa86e799
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=25471
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user