Repository navigation
Conversation
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
Merging this PR will degrade performance by 4.24%2 warnings
Warning Please fix the performance issues or acknowledge them on CodSpeed. Performance Changes
Tip Investigate this regression by commenting Comparing Footnotes
|
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
| @@ -18,6 +18,7 @@ mv-after-help = When specifying more than one of -i, -f, -n, only the final one | |||
| # Error messages | |||
| mv-error-insufficient-arguments = The argument '<{$arg_files}>...' requires at least 2 values, but only 1 was provided | |||
| mv-error-no-such-file = cannot stat {$path}: No such file or directory | |||
There was a problem hiding this comment.
Can we drop this transtation using ENOTDIR and new translation?
There was a problem hiding this comment.
So drop this with mv-error-cannot-stat-not-directory and instead use mv-error-cannot-stat while supplying the trailing OS error?
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
cp reported an unreadable source as "'src' -> 'dst': Permission denied" and mv reported a target in a directory without search permission as a bare "Permission denied (os error 13)" or "cannot move". Report "cannot open 'src' for reading" and "cannot stat 'dst'" instead, as GNU does. mv now builds every "cannot stat" message from one string plus the OS error, replacing the separate no-such-file and not-a-directory ones. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
265da89 to
99b458c
Compare
Fixes #15920
cpandmvhid which step failed behind generic permission errors.cp
cp file1 dir2/file1with an unreadablefile1printed'file1' -> 'dir2/file1': Permission denied. It now printscannot open 'file1' for reading: Permission denied.mv
mv file1 dir2/file1withdir2writable but not searchable printedPermission denied (os error 13)mv file1 dir2/printedcannot move 'file1' to 'dir2/file1'.Both now print
cannot stat 'dir2/file1': Permission denied.I changed the expected message in
test_cp_reflink_insufficient_permission, which asserted the old wording, and added a test for each case.