chmod -v: missing 'could not be accessed' line for operands that can't be stat'ed
维护者通常 1 天内回复
评估
调研方向
从 chmod 的详细变更报告入手,查找现有消息 chmod-verbose-could-not-be-accessed,该消息用于 -R 期间无法读取的目录。将 stat 调用失败、悬空符号链接以及 -v、-f 和 -c 标志的处理方式与此 issue 中的示例进行比较。完成标准是:-v 按示例报告无法访问的操作数,包括同时使用 -f 时,而 -c 会抑制该行。
由索引模型根据 Issue 内容生成。
描述
With -v, GNU chmod (9.7 and 9.12) follows a failure to stat an operand with a line on stdout saying it could not be accessed. uutils prints nothing for a missing operand, f/ or an EACCES path, and for a dangling symlink it prints a fixed, made-up mode change instead.
$ touch f; ln -s nowhere dang
$ chmod -v 644 missing f/ f
chmod: cannot access 'missing': No such file or directory
chmod: cannot access 'f/': Not a directory
'missing' could not be accessed
'f/' could not be accessed
mode of 'f' retained as 0644 (rw-r--r--)
$ chmod -v 755 dang
chmod: cannot operate on dangling symlink 'dang'
'dang' could not be accessed
uutils (main):
$ coreutils chmod -v 644 missing f/ f
chmod: cannot access 'missing': No such file or directory
chmod: cannot access 'f/': Not a directory
mode of 'f' retained as 0644 (rw-r--r--)
$ coreutils chmod -v 755 dang
chmod: cannot operate on dangling symlink 'dang'
failed to change mode of 'dang' from 0000 (---------) to 1500 (r-x-----T)
In GNU this is describe_change with CH_NO_STAT. It is printed with -v even with -f, but not with -c. uutils already prints chmod-verbose-could-not-be-accessed for unreadable directories during -R.
Found with behave, a black-box CLI comparison tool, by diffing uutils chmod against GNU coreutils 9.12.
- 主要语言
- Rust
- 星标
- 24.3k
- 派生
- 2.1k
- 平均合并
- 1 天 21 小时
- 30 天内合并 PR
- 363
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
uutils/coreutils 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 72/100
维护者通常 1 天内回复
-
fold: tab after an 8 KiB buffer flush exceeds the requested width可能已有人在做 @gibkim 今天认领。 未关闭U - fold
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
ls: `--block-size=0` is accepted when `--si` comes later可能已有人在做 @Logic769 于 3 天前认领。 未关闭good first issue U - ls
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
uutils/coreutils#15962 · 3 条评论 ·
维护者通常 1 天内回复
-
B - high priority U - tr
难度 2/5 1-3 小时 新手友好度 67/100
维护者通常 1 天内回复
相似的 Issue
-
Remove the em dashes from the skill smart-account reference可能已有人在做 @Vamsi-2581 今天认领。 未关闭agent-ready area: docs documentation good first issue
难度 2/5 1-3 小时 新手友好度 74/100
Soneso/stellar-agent-wallet#541 · 2 条评论 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
bovinemagnet/AdocFoundry#279 ·
维护者通常 1 天内回复
-
help wanted
难度 1/5 半天 新手友好度 72/100
维护者通常 1 天内回复
-
triage
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 2 天内回复
-
accessibility good first issue
难度 2/5 1-3 小时 新手友好度 72/100