Skip to content

coreutils: Resolve symlink with invalid binary name for better dummy support #10946

Description

@oech3

People might symlink /usr/bin/{true/false,etc...} to other binaries as dummy. It works with individual binaries, but it does not work with argv[0] based multi-call binary.
We can readlink if coreutils was called with invalid name from absolute path. But it does not work if it was called from PATH.
At Linux, getauxval (AT_EXECFN) & readlink can be used for the usacase. I don't know what can we use on other platforms.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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