Skip to content

cp: name full paths when -l or -s cannot create a link - #16838

Merged
sylvestre merged 1 commit into
uutils:mainfrom
binhvq:cp-link-error-paths
Nov 27, 2026
Merged

sylvestre merged 1 commit into
uutils:mainfrom
binhvq:cp-link-error-paths

Conversation

@binhvq

@binhvq binhvq commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

The hard link and symlink errors were built from get_filename(), so only the last component of each path was shown and cp -l s/t/n d/ reported 'n' to 'n'. Quote the paths themselves instead.

Closes #16837

@github-actions

Copy link
Copy Markdown

GNU testsuite comparison:

Skip an intermittent issue tests/tail/inotify-dir-recreate (fails in this run but passes in the 'main' branch)

@sylvestre
sylvestre merged commit dcac526 into uutils:main Nov 27, 2026
144 of 145 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cp: -l and -s errors show only the file names, not the paths

2 participants