[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mandoc-source
Subject:    mdocml: Sanitize the environment when calling make(1) to autodetect
From:       schwarze () mdocml ! bsd ! lv
Date:       2016-07-15 15:09:07
Message-ID: 3890317756709628376.enqueue () fantadrom ! bsd ! lv
[Download RAW message or body]

Log Message:
-----------
Sanitize the environment when calling make(1) to autodetect ${CC}.
Sevan Janiyan found during testing on AIX that ${CC} could leak in.

Modified Files:
--------------
    mdocml:
        configure

Revision Data
-------------
Index: configure
===================================================================
RCS file: /home/cvs/mdocml/mdocml/configure,v
retrieving revision 1.40
retrieving revision 1.41
diff -Lconfigure -Lconfigure -u -p -r1.40 -r1.41
--- configure
+++ configure
@@ -34,7 +34,7 @@ echo "config.log: writing..."
 MANPATH_DEFAULT="/usr/share/man:/usr/X11R6/man:/usr/local/man"
 OSNAME=
 
-CC=`printf "all:\\n\\t@echo \\\$(CC)\\n" | make -f -`
+CC=`printf "all:\\n\\t@echo \\\$(CC)\\n" | env -i make -f -`
 CFLAGS="-g -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings"
 LDADD=
 LDFLAGS=
--
 To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic