Skip to content

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

@oech3

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.

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