]> Cypherpunks repositories - goredo.git/commitdiff
Fix file's executable bit check
authorRafael Fourquet <fourquet.rafael@gmail.com>
Sun, 26 Oct 2025 13:39:22 +0000 (16:39 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sun, 26 Oct 2025 13:43:19 +0000 (16:43 +0300)
run.go

diff --git a/run.go b/run.go
index b82293b502d218f97bc49cafdf45c8af1f299c9c..8a6e40cc34c21d65bb3ee6f66321621f52d401b8 100644 (file)
--- 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 {