Skip to content

chmod apply body ignores dead cwd (node stat classifies, apply still uses string paths) #3448

Closed

Description

@caomengxuan666

Follow-up from the #3440 review (PR #3440, Refs #3425): the node-stat anchor classifies correctly, but the chmod apply body still uses string paths, so under a dead cwd the apply itself fails.

Evidence (reviewer v3 decisive probe, probe-dead-cwd3.sh in ~/workspace/review-3440/, GNU coreutils 9.4 oracle):

  • chmod 600 a/b in a dead cwd: head reports ENOTDIR, base reports ENOENT — the node-stat anchor works.
  • chmod 600 a in a dead cwd: both head and base report ENOENT and the mode is unchanged — the apply body never reaches the file.
  • v1/v2 probe constructions were VOID (fixture deleted by the probe itself / touch failing in the deleted cwd); only v3 (rename construction) is decisive.

Scope: same-as-base behaviour, not a regression — #3276 family residual. Destination: 1.5.1, fix in the same wave as the next chmod/stat touch. Refs #3425, Refs #3276.

Activity

  1. added this to the 1.5.1 milestone on Nov 12, 2026
  2. added
    bug
    gnu-baseline
    P3-low
    area:path
    on Nov 12, 2026
  3. caomengxuan666 commented on Nov 13, 2026

    @caomengxuan666
    MemberAuthor

    队长修复车道已开工(工作区 fix-3448、分支 fix/3448-chmod-apply-dead-cwd,base master 3745712)。范围:chmod apply 本体 dead-cwd 面(#3440 复核 v3 探针 m2 格),GNU 锚点 coreutils 9.4 src/chmod.c:231。草稿 PR 稍后开。

  4. caomengxuan666 commented on Nov 15, 2026

    @caomengxuan666
    MemberAuthor

    【WIN-AGENT-ISSUE-CLOSE】由 #3486 修复落地(squash 5dcd1e6)关闭;审计/返工判词见该 PR 评论。

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

Metadata

Metadata

Labels

P3-lowarea:pathbuggnu-baseline

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions