HomeFreeBSD

sh: Fix use after free when resetting an in-use alias.

Description

sh: Fix use after free when resetting an in-use alias.

The special case of modifying an existing alias does not work correctly if
the alias is currently in use. Instead, handle this case by unaliasing the
old alias (if any) and then creating a new alias.

Details

Provenance
jillesAuthored on
Parents
rS317038: sh: Link the new test to the build.
Branches
Unknown
Tags
Unknown