Skip to content

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

Open

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

  1. added 10 commits that reference this issue on Oct 18, 2026
    f918ead
    7477559
    37d5117
    ad408e9
    6dfc6f7
    0355994
    72acd75
    728cba7
    c4dc57b
    a95de4c
  2. added a commit that references this issue on Oct 25, 2026
    724c0a1
  3. added 3 commits that reference this issue on Nov 4, 2026
    70bf679
    4f79158
    0d47dc2
  4. added a commit that references this issue on Nov 7, 2026
    3547dac
  5. added a commit that references this issue on Nov 7, 2026
    43a50a8
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