Repository navigation
ln: create links through the open target directory - #15524
abendrothj wants to merge 3 commits into
Conversation
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.
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.
|
GNU testsuite comparison: |
Merging this PR will degrade performance by 9%2 warnings, 1 note
Warning Please fix the performance issues or acknowledge them on CodSpeed. Performance Changes
Tip Investigate this regression by commenting Comparing Footnotes
|
71a3e69 to
f6794f9
Compare
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.
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.
This comment was marked as resolved.
This comment was marked as resolved.
f6794f9 to
eb937fb
Compare
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.
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.
eb937fb to
f36e668
Compare
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.
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.
|
Binary size comparison: |
f36e668 to
c30e23a
Compare
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.
c30e23a to
fa04a96
Compare
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. Try requesting a review at a lower effort level.
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.
|
Check failures tracked by #16147. |
|
a bunch of jobs are failing |
|
needs to be rebased for CI |
fa04a96 to
92c0e62
Compare
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. Try requesting a review at a lower effort level.
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.
For ln -f/-sf, cp -lf/-sf and mv's cross-device symlink. Without O_PATH or O_SEARCH (OpenBSD, Hurd) it falls back to the directory's path.
ln and mv's cross-device move use it next. The no-unique-temp-name error is now translated.
Links and backups stay in the directory if it is renamed meanwhile.
92c0e62 to
3e02400
Compare
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. Try requesting a review at a lower effort level.
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.
Based on #15122; only the last commit is new here.
Closes #15523
With a target directory, ln checked it once and then created each link and renamed each backup by joining the directory's path, so a rename of that path in between sent the remaining links elsewhere.
ln now opens the target directory once and does everything relative to it: the existence and directory checks, choosing a backup name, the backup rename, and creating or replacing the link.
.,..and/as sources resolve as before. A directory that can't be opened, and an empty source name, still go by path, so their errors stay as they were. The-rlink text and the same-file checks still use the path. uucore'sDirAnchorbecomes public, andbackup_control::get_backup_path_with_existschecks numbered backup names in the same directory.One message changes: with
-fn, several sources and a target that is a symlink to a directory, the second source now gets "will not overwrite just-created" instead of "Not a directory". GNU refuses that command outright, while main replaces the symlink with the first link; that's for a separate fix.Checked against GNU 9.12 with the target renamed while ln waits at an
-iprompt, with and without--backup: links and backups stay in the original directory, as in GNU.test_target_dir_renamed_during_promptcovers six cases and fails without the change on macOS and Linux.test_unsearchable_target_dir,test_empty_source_into_target_dir,test_target_dir_backup_source_without_basenameand two tests for write/search-only target directories cover what stays as it was.