mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-22 22:11:39 +02:00
fuse integration: skip non-executable weed path candidates
This commit is contained in:
1 parent
d9aa956d49
commit
c607adbe6a
1 file changed
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user