Skip to content

fix self-copy guard#2623

Merged
CatsDeservePets merged 1 commit into
gokcehan:masterfrom
valoq:copy-fix
Jun 20, 2026
Merged

fix self-copy guard#2623
CatsDeservePets merged 1 commit into
gokcehan:masterfrom
valoq:copy-fix

Conversation

@valoq

@valoq valoq commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

A destination like proj/..x slipped past the !HasPrefix(rel, "..") check, so copyAll copied the folder into itself until PATH_MAX. filepath.IsLocal implements the clean check intended for exactly this use case and correctly reports paths that stay inside the source.

@CatsDeservePets CatsDeservePets merged commit 4e4701a into gokcehan:master Jun 20, 2026
32 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.

2 participants