Uh oh!
There was an error while loading. Please reload this page.
Fix File.Copy onto a symlink on macOS - #87600
Conversation
ghost
commented
Jun 15, 2023
Tagging subscribers to this area: @dotnet/area-system-io Issue DetailsResolves #79243 (comment). I introduced a minor bug in #79243, which means that using This fix should be basically zero additional cost currently, as it doesn't introduce any additional syscalls (except for the case we're fixing). Also adds a test to catch this in the future.
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Resolve s the discussion at #79243 (comment).
I introduced a minor bug in #79243, which meant that using
File.Copyonto a symlink won't produce the expected behaviour of modifying what the symlink points to, as opposed to what I implemented, which was to replace the symlink.This fix should be basically zero additional cost currently, as it doesn't introduce any additional syscalls (except for the case we're fixing). Also adds a test to catch this in the future.