Files
ss/internal/service/exec_unix.go
2026-07-19 20:01:38 +08:00

12 lines
267 B
Go

//go:build !windows
package service
import "os"
// isExecutable checks the Unix executable bit, matching Python's
// os.access(v, os.X_OK) check in ServiceConfig.validate_executable_path.
func isExecutable(info os.FileInfo) bool {
return info.Mode()&0o111 != 0
}