Skip to content

[compat] realpath: bug(realpath): when a filename larger it do not error out (uutils#13154) #370

Closed

Description

@caomengxuan666

上游

复现

n=$(printf "A%.0s" $(seq 1 300)); winuxcmd realpath "$n" 2>&1 | head -1; echo rc=$?

实测对比(realpath long,grc=0 wrc=0)

GNU: /usr/bin/realpath: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
WC : C:\Users\Administrator\AppData\Local\Temp\uu_c60ldkui\AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

状态

GAP-待修:已复现的真语义差距,未修复。修复建议见 GAP_REPORT.md。

Activity

  1. added
    compat-gap
    uutils
    on Sep 9, 2026
  2. caomengxuan666 commented on Sep 14, 2026

    @caomengxuan666
    MemberAuthor

    Fixed in a91fd1e — component-wise symlink canonicalization (physical semantics), -e leaf existence, dangling-leaf substitution, ENAMETOOLONG handling, stat -L failure on dangling links, stderr diagnostics. Verified vs WSL GNU 9.4; see issues/report-realpath.md.

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

    compat-gapuutils

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions