Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

chmod -v: missing 'could not be accessed' line for operands that can't be stat'ed

オープン 初心者向け
#15,883 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@emirmrkaljevic がすでに取り組んでいます。

2026年10月26日 から。

  • #15884 @emirmrkaljevic による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
68/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
rust
領域
cli

調査の方向性

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

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

uutils/coreutils のほかの issue

uutils/coreutils の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。