aboutsummaryrefslogtreecommitdiff
path: root/executor/executor_linux.go
diff options
context:
space:
mode:
Diffstat (limited to 'executor/executor_linux.go')
-rw-r--r--executor/executor_linux.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/executor/executor_linux.go b/executor/executor_linux.go
index 4ab8367..8665fd0 100644
--- a/executor/executor_linux.go
+++ b/executor/executor_linux.go
@@ -7,6 +7,7 @@ import (
"errors"
"fmt"
"io"
+ "io/fs"
"os"
"os/exec"
"path"
@@ -913,7 +914,7 @@ func filepathIsRegular(path string) error {
if err != nil {
return err
}
- if !f.Mode().Type().IsRegular() {
+ if !(f.Mode().Type().IsRegular() || f.Mode().Type() & fs.ModeType == fs.ModeSymlink) {
return fmt.Errorf("path was not a regular file")
}
return nil