Skip to content

Converting absolute to relative symlink errors with No such file or directory #2335

@SuperSandro2000

Description

@SuperSandro2000

When nixpkgs tries to convert absolute symlinks to relative ones this currently fails with the deletion of the symlink. Tested on current master with https://patch-diff.githubusercontent.com/raw/uutils/coreutils/pull/2330.diff applied.

$ touch ed
$ result/bin/uutils-ln -s ed red
$ result/bin/uutils-ln -snrf ed red
ln: No such file or directory (os error 2)
$ lsd -lah red
lsd: red: No such file or directory (os error 2).

After the error the original symlink is deleted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions