Skip to content

Comments

cp: improve symlink handling#2426

Merged
tertsdiepraam merged 4 commits intouutils:masterfrom
miDeb:cp/symlinks
Jun 18, 2021
Merged

cp: improve symlink handling#2426
tertsdiepraam merged 4 commits intouutils:masterfrom
miDeb:cp/symlinks

Conversation

@miDeb
Copy link
Contributor

@miDeb miDeb commented Jun 17, 2021

Closes #2423.

When we try to copy a symlink, don't dereference it (unless dereference is enabled). When recursively copying, dereference is disabled by default.

Copy link
Collaborator

@tertsdiepraam tertsdiepraam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! There's a clippy lint on the complex if expression, but I guess you already noticed

@tertsdiepraam tertsdiepraam linked an issue Jun 18, 2021 that may be closed by this pull request
@tertsdiepraam tertsdiepraam merged commit e273cb8 into uutils:master Jun 18, 2021
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: permission denied cp: copying dangling or nested symlink results in error

3 participants