summaryrefslogtreecommitdiff
path: root/src/env/putenv.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013-08-16 17:51:38 -0400
committerRich Felker <dalias@aerifal.cx>2013-08-16 17:51:38 -0400
commit82fa6b43b367d047e89cfa5505ad718253fbb693 (patch)
treee49cb6c2694a0be5ded8eaf0d913da9ba11a9fe3 /src/env/putenv.c
parent63893d3ff1f9383ba3ce63a19b7de74ace319d77 (diff)
downloadmusl-82fa6b43b367d047e89cfa5505ad718253fbb693.tar.gz
musl-82fa6b43b367d047e89cfa5505ad718253fbb693.tar.bz2
musl-82fa6b43b367d047e89cfa5505ad718253fbb693.tar.xz
musl-82fa6b43b367d047e89cfa5505ad718253fbb693.zip
fix atomicity and other issues installing dynamic linker symlink
ln -sf is non-atomic; it unlinks the destination first. instead, make a temporary link and rename it into place. this commit also fixes some of the dependency tracking behavior for the link. depending on the directory it's to be installed in is not reasonable; it causes a new link to be attempted if the library directory has been modified, but does not attempt to make a new link just because libc has been updated. instead, depend on the target to be linked to. this will ensure that, if prefix has changed but syslibdir has not, the link will be updated to point to the new prefix.
Diffstat (limited to 'src/env/putenv.c')
0 files changed, 0 insertions, 0 deletions