From 75748b6f09f459339bec6976fbf05e1eadc00d6c Mon Sep 17 00:00:00 2001 From: Scott Garman Date: Fri, 21 Jan 2011 16:15:33 -0800 Subject: send-pull-request: unset $TO and $CC from environment 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 --- scripts/send-pull-request | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts/send-pull-request') diff --git a/scripts/send-pull-request b/scripts/send-pull-request index 9872c0dc6..a66d4dc6d 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 <