bastion 0.54.0
ci / personal-data (push) Successful in 4s
ci / fuzz (push) Successful in 2m44s
ci / test (push) Successful in 2m11s

This commit is contained in:
Privatae
2026-10-21 22:29:10 +00:00
parent e4c9b69b46
commit d62da8adb4
58 changed files with 6944 additions and 124 deletions
+4
View File
@@ -229,6 +229,7 @@ func main() {
// Started by the Windows Service Control Manager: the service runs `run`
// itself and never reaches the argument parsing below.
if maybeRunAsWindowsService() {
auditFlush(auditFlushOnExit)
return
}
if len(os.Args) < 2 {
@@ -618,6 +619,9 @@ func main() {
usage()
os.Exit(2)
}
// The command's audit rows reach the system log before the process ends
// (auditlog.go queues them off the op's own path).
auditFlush(auditFlushOnExit)
if err != nil {
fmt.Fprintln(os.Stderr, "error:", err)
os.Exit(1)