Skip to content

cp: avoid resolving cwd for absolute recursive copies - #14336

Open
varranvar wants to merge 1 commit into
uutils:mainfrom
varranvar:fix9105
Open

cp: avoid resolving cwd for absolute recursive copies#14336
varranvar wants to merge 1 commit into
uutils:mainfrom
varranvar:fix9105

Conversation

@varranvar

Copy link
Copy Markdown

Recursive copies unconditionally resolve cwd. This causes errors when the working directory has been removed, even if the source and destination paths were absolute. This fix is to stop resolving the cwd if the source path is absolute.

Fixes #9105.

Recursive copies unconditionally resolve cwd. This causes errors when
the working directory has been removed, even if the source and
destination paths were absolute. This fix is to stop resolving the
cwd if the source path is absolute.

Fixes uutils#9105.
@github-actions

Copy link
Copy Markdown

GNU testsuite comparison:

Skipping an intermittent issue tests/tail/retry (passes in this run but fails in the 'main' branch)
Note: The gnu test tests/cp/link-heap is now being skipped but was previously passing.
Note: The gnu test tests/seq/seq-epipe is now being skipped but was previously passing.

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.

[Compatibility BUG] cp commands fails if process is in deleted directory

1 participant