From: Rafael Fourquet Date: Sun, 26 Oct 2025 13:39:22 +0000 (+0300) Subject: Fix file's executable bit check X-Git-Tag: v2.6.5~2 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=3cf176cd5d298a52166a5c3d047bf8f5ae72e506;p=goredo.git Fix file's executable bit check --- diff --git a/run.go b/run.go index b82293b..8a6e40c 100644 --- a/run.go +++ b/run.go @@ -375,7 +375,7 @@ func runScript(tgt *Tgt, errs chan error, forced, traced bool) error { // Prepare command line var cmdName string var args []string - if err = unix.Access(doFile.rel, unix.X_OK); err == nil { + if err = unix.Access(doFile.a, unix.X_OK); err == nil { cmdName = doFile.a args = make([]string, 0, 3) } else {