Skip to content

fix: reject copying a directory into itself through a symlink - #2699

Open
valoq wants to merge 1 commit into
gokcehan:masterfrom
valoq:loop2
Open

valoq wants to merge 1 commit into
gokcehan:masterfrom
valoq:loop2

Conversation

@valoq

@valoq valoq commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

The self-copy guard compared path strings only and pasting into asymlink that points back inside the source was not detected and
the copy recursed into its own output. Resolve symlinks in both paths before the check.

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.

1 participant