chmod -v: missing 'could not be accessed' line for operands that can't be stat'ed
メンテナーはふだん 1 日以内に返信
評価
調査の方向性
chmodの詳細な変更報告から始め、-Rの実行中に読み取れないディレクトリに対して使われる既存のメッセージchmod-verbose-could-not-be-accessedを探してください。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日 23時間
- マージ済み PR(30日)
- 337
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
uutils/coreutils のほかの issue
-
chown, chgrp: 'cannot dereference' instead of 'cannot access' for a missing operand対応中かも @emirmrkaljevic が今日担当しました。 オープンU - chgrp U - chown
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
split: -b and -l ignore short writes, exit 0 with a truncated last chunk対応中かも @binhvq が今日担当しました。 オープンgood first issue I - Incorrect oss-scanner U - split
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
uutils/coreutils#15820 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
df: prints raw control characters in file and mount names, unlike GNU対応中かも @aj-codespy が 1 日前に担当しました。 オープンgood first issue I - Incorrect oss-scanner U - df
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
uutils/coreutils#15817 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
quoting_style: ! in double quotes allows command injection when pasted対応中かも @fixfon が今日担当しました。 オープンgood first issue I - Incorrect oss-scanner U - All (uucore) U - ls
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
quoting_style: shell-escape misquotes C1 controls in names with an apostrophe対応中かも @fixfon が今日担当しました。 オープンgood first issue I - Incorrect oss-scanner U - All (uucore) U - ls
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
メンテナーはふだん 1 日以内に返信
uutils/coreutils の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
haowjy/mars-agents#228 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
redlib-org/redlib#604 ·
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
dividebysandwich/rust-dos#240 ·
メンテナーはふだん 1 日以内に返信
-
A-UI C-Bug S-Needs-Triage
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
bevyengine/bevy#26330 ·
メンテナーはふだん 2 日以内に返信