Skip to content

Fix: dont follow broken shortcuts - #2557

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

Fix: dont follow broken shortcuts#2557
valoq wants to merge 1 commit into
gokcehan:masterfrom
valoq:shortcut

Conversation

@valoq

@valoq valoq commented Apr 28, 2026

Copy link
Copy Markdown
Contributor

This patch prevents lf from accidentally overwriting unrelated files when the destination folder contains a leftover broken shortcut with the same name as the file being copied. Without the patch, lf creates a real file at wherever the shortcut points. The patch stops with an error and the unrelated location is left alone.

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