-
-
Notifications
You must be signed in to change notification settings - Fork 300
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix glob expansion that includes broken symlinks
Glob expansion should use os.Lstat rather than os.Stat so that broken symlinks don't stop glob expansion. It's not the place of glob expansion to decide if a particular path is good. The symlink test cases and logic were borrowed from pkg/mods/path/path_test.go. Fixes #1240
- Loading branch information
Kurtis Rader
committed
Jun 29, 2022
1 parent
b47f8e0
commit c0ab3ca
Showing
3 changed files
with
30 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters