]> pd.if.org Git - zpackage/commit
add check for symlink removal in syncfs
authorNathan Wagner <nw@hydaspes.if.org>
Sun, 9 Dec 2018 11:40:40 +0000 (11:40 +0000)
committerNathan Wagner <nw@hydaspes.if.org>
Sun, 9 Dec 2018 11:40:40 +0000 (11:40 +0000)
commitf523c503b7afe9964eb2c659f42c3cabbe725ae2
treef4a7da95ba045cce109186be53e629798c07d2bc
parent89a160b4762730e078ed8d2e5c212a51f17ac6f8
add check for symlink removal in syncfs

Creating a symlink will error if the file already exists, so we check
for a symlink with a different target and mark it for removal before
creation.  This has a small race condition, and there may be a case
where the old symlink gets deleted but the new one does not get created.
zpm-syncfs.c