Skip to content

Commit

Permalink
fix: adopt go1.23 behavior change in mount point parsing on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
andyzhangx committed Dec 25, 2024
1 parent e0f42da commit ded5b04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/os/filesystem/filesystem.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func IsSymlink(tgt string) (bool, error) {
}

// If its a link and it points to an existing file then its a mount point.
if stat.Mode()&os.ModeSymlink != 0 {
if stat.Mode()&os.ModeSymlink != 0 || stat.Mode()&os.ModeIrregular != 0 {
target, err := os.Readlink(tgt)
if err != nil {
return false, fmt.Errorf("readlink error: %v", err)
Expand Down

0 comments on commit ded5b04

Please sign in to comment.