All checks were successful
Test / Create distribution (push) Successful in 26s
Test / Sandbox (push) Successful in 1m44s
Test / Fortify (push) Successful in 2m37s
Test / Sandbox (race detector) (push) Successful in 2m59s
Test / Fpkg (push) Successful in 3m34s
Test / Fortify (race detector) (push) Successful in 4m6s
Test / Flake checks (push) Successful in 59s
This reduces the scope of the fst package, which was growing questionably large. Signed-off-by: Ophestra <cat@gensokyo.uk>
18 lines
351 B
Go
18 lines
351 B
Go
package instance
|
|
|
|
import (
|
|
"syscall"
|
|
|
|
"git.gensokyo.uk/security/fortify/internal/app"
|
|
"git.gensokyo.uk/security/fortify/internal/app/internal/setuid"
|
|
)
|
|
|
|
func PrintRunStateErr(whence int, rs *app.RunState, runErr error) (code int) {
|
|
switch whence {
|
|
case ISetuid:
|
|
return setuid.PrintRunStateErr(rs, runErr)
|
|
default:
|
|
panic(syscall.EINVAL)
|
|
}
|
|
}
|