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

mv: a failed cross-device move always reports "Permission denied"

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

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

まだ誰も着手していません。

評価

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

調査の方向性

まず rename_file_fallback と、mv のデバイス間コピー処理に関するエラー処理を読みます。issue では、元のエラーメッセージとファイル名が失われる箇所が示されています。完全な destination ファイルシステムと読み取り不能なソースを使って再現し、報告されたエラーを GNU の動作と照合します。mv が実際のコピーエラーまたはソースエラーを該当するファイル名とともに報告すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

U - mv

When mv copies a regular file to another filesystem, any error during the copy is printed as Permission denied, whatever the real cause was. With a full destination:

# mount -t tmpfs -o size=1m tmpfs /mnt/small
$ head -c 2M /dev/zero > big
$ mv big /mnt/small/big
mv: Permission denied

GNU 9.12 prints mv: error writing '/mnt/small/big': No space left on device. With an unreadable source, uutils prints the same mv: Permission denied, while GNU prints mv: cannot open 'src' for reading: Permission denied.

rename_file_fallback replaces each error's message with mv-error-permission-denied and keeps only the error kind, so the real cause and the file name are lost. This is also why #9458 says "Permission denied": the copy runs out of space.

主要言語
Rust
スター
24.3k
フォーク
2.1k
平均マージ
1日 21時間
マージ済み PR(30日)
362

環境構築

Codespaces で開く

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

はじめの一歩

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

uutils/coreutils のほかの issue

uutils/coreutils の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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