]> git.proxmox.com Git - mirror_qemu.git/commit
configure: unset harmful environment variables
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 25 May 2023 15:46:07 +0000 (17:46 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 26 May 2023 08:17:32 +0000 (10:17 +0200)
commit5b507233e6ce8f7ccfc4431f934518e15102e63a
treedb7d1bfa6b83c7940523fb9bdf1793265f72fdde
parenteea2d141179e58222eb655f948a951561134b260
configure: unset harmful environment variables

Apart from CLICOLOR_FORCE and GREP_OPTIONS, there are other variables
that are listed in the Autoconf manual.  While Autoconf neutralizes them
very early, and assumes it does not (yet) run in a shell that has "unset",
QEMU assumes that the user invoked configure under a POSIX shell, and
therefore can simply use "unset" to clear them.

CDPATH is particularly nasty because it messes up "cd ... && pwd".

Reported-by: Juan Quintela <quintela@redhat.com>
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
configure