You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ln can be used to overwrite a link like so: ln -sfn target link_name, because:
ln [OPTION]... [-T] TARGET LINK_NAME
Here's a minimal reproducer:
$ mkdir a b; ln -s a mylink # setup
$ readlink mylink # verify setupa
$ ../../../gnu/src/ln -sfn b mylink # demonstrate that GNU works
$ readlink mylink # verify successb
$ rm mylink; ln -s a mylink; readlink mylink # reset and verifya
$ cargo run -q ln -sfn b mylinkln: Could not update 'mylink': Not a directory (os error 20)
$ echo$?# fails according to stderr, but actually works0
$ readlink mylink # also, it did the right thingb
Originally reported by @LuNeder. Apparently this affects NixOS adversely.
Similar to, but different from #5974. In particular, #5975 does NOT fix this issue (I tested it).
The text was updated successfully, but these errors were encountered:
ln
can be used to overwrite a link like so:ln -sfn target link_name
, because:Here's a minimal reproducer:
Originally reported by @LuNeder. Apparently this affects NixOS adversely.
Similar to, but different from #5974. In particular, #5975 does NOT fix this issue (I tested it).
The text was updated successfully, but these errors were encountered: