]> pd.if.org Git - zpackage/commitdiff
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)
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.


No differences found