Skip to content

Commit

Permalink
feat!: set UNKNOWN state if exec command has no permission
Browse files Browse the repository at this point in the history
  • Loading branch information
macrat committed Apr 18, 2021
1 parent 0241cfb commit 91ad70b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion probe/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func (p ExecuteProbe) Check() []store.Record {

if err != nil {
status = store.STATUS_FAILURE
if e := errors.Unwrap(err); e != nil && (e.Error() == "no such file or directory" || e.Error() == "executable file not found in $PATH") {
if e := errors.Unwrap(err); e != nil && (e.Error() == "no such file or directory" || e.Error() == "permission denied" || e.Error() == "executable file not found in $PATH") {
status = store.STATUS_UNKNOWN
}

Expand Down

0 comments on commit 91ad70b

Please sign in to comment.