fuse integration: skip non-executable weed path candidates

This commit is contained in:
Chris Lu committed 2026-10-22 02:47:36 -07:00
1 parent d9aa956d49
commit c607adbe6a
1 file changed
+1 -1
+1 -1
View File
@@ -381,7 +381,7 @@ func findWeedBinary() string {
if _, err := exec.LookPath(candidate); err == nil {
return candidate
}
if _, err := os.Stat(candidate); err == nil {
if info, err := os.Stat(candidate); err == nil && !info.IsDir() && info.Mode()&0111 != 0 {
abs, _ := filepath.Abs(candidate)
return abs
}