Skip to content

abuild: unset option variables to prevent environment leaking in

In abuild's getopts loop, option variables such as "keep", "verbose", etc are only set if the corresponding option is found. If such an option is not found, any environment variable with the same name will leak in, instead. Prevent this by explicitly unsetting almost all of them.

Merge request reports