mirror of
https://git.musl-libc.org/git/musl
synced 2025-02-13 08:44:08 +03:00
![Rich Felker](/assets/img/avatar_default.png)
install.sh was wrongly waiting until after atomically replacing the old file to set the correct permissions on the new file. in the case of the dynamic linker, this would cause a dynamic-linked chmod command not to run (due to missing executable permissions on the dynamic linker) and thus leave the system in an unusable state. even if chmod is static-linked, the old behavior had a race window where dynamic-linked programs could fail to run.