[poky] [PATCH 1/1] send-pull-request: unset $TO and $CC from environment
Scott Garman
scott.a.garman at intel.com
Fri Jan 21 16:22:01 PST 2011
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 at intel.com>
---
scripts/send-pull-request | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/scripts/send-pull-request b/scripts/send-pull-request
index 9872c0d..a66d4dc 100755
--- a/scripts/send-pull-request
+++ b/scripts/send-pull-request
@@ -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
--
1.7.1
More information about the poky
mailing list