chown -v: `+ID` spec echoed verbatim on a broken symlink
维护者通常 1 天内回复
@sunsss123soldier 已经在做这个了。
开始于 2026年11月16日。
评估
调研方向
详细消息是在 src/uucore/src/lib/features/perms.rs 的 traverse 中根据 raw_owner 构建的;应改为打印解析出的所有者/组 ID。阅读将 +1000 和 :+1000 转换为 ID 的 spec 解析路径,以便判断何时只给出了组,然后复用这些解析后的值。运行 cargo test --features unix --test tests -- --ignored test_chown::test_chown_verbose_broken_symlink_plus_ids(来自 #16493)并与 GNU chown 比较;当消息显示 1000 且对仅组的情况说 "group" 时即完成。
由索引模型根据 Issue 内容生成。
描述
GNU coreutils master prints the parsed IDs in this message, and says "group" when only a group is given.
$ ln -s absent ghost
$ chown -v +1000 ghost # uutils: ... to +1000 GNU: ... to 1000
$ chown -v :+1000 ghost # uutils: failed to change ownership of 'ghost' to :+1000
# GNU: failed to change group of 'ghost' to 1000
See traverse in src/uucore/src/lib/features/perms.rs (uses raw_owner).
Test added in #16493: cargo test --features unix --test tests -- --ignored test_chown::test_chown_verbose_broken_symlink_plus_ids
- 主要语言
- Rust
- 星标
- 24.4k
- 派生
- 2.2k
- 平均合并
- 3 天 6 小时
- 30 天内合并 PR
- 434
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
uutils/coreutils 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 83/100
维护者通常 1 天内回复
-
U - shred
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
dircolors: --csh doesn't escape `!`可能已有人在做 @majidninja 于 2 天前认领。 未关闭good first issue oss-scanner U - dircolors
难度 2/5 1-3 小时 新手友好度 72/100
uutils/coreutils#16496 · 1 条评论 ·
维护者通常 1 天内回复
-
dircolors: directory operand exits 2 with a custom message, GNU prints 'read error: Is a directory' and exits 1可能已有人在做 @emirmrkaljevic 于 3 天前认领。 未关闭U - dircolors
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
test_hostid.rs lacks test cases with frozen ip addr e.g. unshare -ru sh -c "hostname 127.0.0.1 && hostid"可能已有人在做 @costajohnt 于 4 天前认领。 未关闭U - hostid
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
相似的 Issue
-
documentation tool triaged
难度 2/5 1-3 小时 新手友好度 73/100
can1357/oh-my-pi#19608 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
tauri-apps/tauri#16563 ·
维护者通常 1 天内回复
-
ai_p2
难度 2/5 1-3 小时 新手友好度 80/100
ClickHouse/ClickHouse#132519 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 2 天内回复