diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-03-15 23:57:44 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-03-16 00:01:25 +0900 |
| commit | 6e7ddb2d2ec6b163dc2c178bc4d73b5943f51206 (patch) | |
| tree | 37ffe1564782377c1983909362ed6109c3f06b28 /helper/helper.go | |
| parent | bac4e67867faa7d8274b684575140a65827d3a4c (diff) | |
helper: eliminate commandContext replacement
This is done more cleanly by modifying Args in cmdF.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'helper/helper.go')
| -rw-r--r-- | helper/helper.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/helper/helper.go b/helper/helper.go index ac45ac79..8a25fee9 100644 --- a/helper/helper.go +++ b/helper/helper.go @@ -6,17 +6,12 @@ import ( "fmt" "io" "os" - "os/exec" "time" "git.gensokyo.uk/security/fortify/helper/proc" ) -var ( - WaitDelay = 2 * time.Second - - commandContext = exec.CommandContext -) +var WaitDelay = 2 * time.Second const ( // FortifyHelper is set to 1 when args fd is enabled and 0 otherwise. |
