]> code.ossystems Code Review - openembedded-core.git/commitdiff
send-pull-request: unset $TO and $CC from environment
authorScott Garman <scott.a.garman@intel.com>
Sat, 22 Jan 2011 00:15:33 +0000 (16:15 -0800)
committerSaul Wold <sgw@linux.intel.com>
Mon, 24 Jan 2011 22:09:13 +0000 (14:09 -0800)
Darren Hart and I discovered that when $CC is set (which
our meta-toolchain environment script sets up), the value
leaks into the use of this script. Unsetting $TO as well
just to be thorough.

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
scripts/send-pull-request

index 9872c0dc65886891ba0362a0e7c73c184e27043e..a66d4dc6d7fe8289ce7bd32a0fad63ee31d1de5c 100755 (executable)
@@ -6,6 +6,10 @@ if [ -z "$PULL_MTA" ]; then
     PULL_MTA="sendmail"
 fi
 
+# Prevent environment leakage to these vars.
+unset TO
+unset CC
+
 usage()
 {
 cat <<EOM