aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/fpkg
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/fpkg')
-rw-r--r--cmd/fpkg/proc.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/cmd/fpkg/proc.go b/cmd/fpkg/proc.go
index a995c9f1..7fa6df5a 100644
--- a/cmd/fpkg/proc.go
+++ b/cmd/fpkg/proc.go
@@ -12,12 +12,18 @@ import (
"git.gensokyo.uk/security/fortify/internal/fmsg"
)
+const compPoison = "INVALIDINVALIDINVALIDINVALIDINVALID"
+
+var (
+ Fmain = compPoison
+)
+
func fortifyApp(config *fst.Config, beforeFail func()) {
var (
cmd *exec.Cmd
st io.WriteCloser
)
- if p, ok := internal.Check(internal.Fortify); !ok {
+ if p, ok := internal.Path(Fmain); !ok {
beforeFail()
fmsg.Fatal("invalid fortify path, this copy of fpkg is not compiled correctly")
panic("unreachable")