diff options
| author | Scott Garman <scott.a.garman@intel.com> | 2011-01-21 16:15:33 -0800 |
|---|---|---|
| committer | Saul Wold <sgw@linux.intel.com> | 2011-01-24 14:09:13 -0800 |
| commit | 75748b6f09f459339bec6976fbf05e1eadc00d6c (patch) | |
| tree | 2ef1c84a8c19ed9f61f9b4c29570b01b26b7dcd9 /scripts | |
| parent | aee1d50802f6e97dba9c8418155f36dbe3cf3e8c (diff) | |
| download | poky-75748b6f09f459339bec6976fbf05e1eadc00d6c.tar.gz | |
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 <scott.a.garman@intel.com>
Diffstat (limited to 'scripts')
| -rwxr-xr-x | 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 9872c0dc65..a66d4dc6d7 100755 --- a/scripts/send-pull-request +++ b/scripts/send-pull-request | |||
| @@ -6,6 +6,10 @@ if [ -z "$PULL_MTA" ]; then | |||
| 6 | PULL_MTA="sendmail" | 6 | PULL_MTA="sendmail" |
| 7 | fi | 7 | fi |
| 8 | 8 | ||
| 9 | # Prevent environment leakage to these vars. | ||
| 10 | unset TO | ||
| 11 | unset CC | ||
| 12 | |||
| 9 | usage() | 13 | usage() |
| 10 | { | 14 | { |
| 11 | cat <<EOM | 15 | cat <<EOM |
