bastion 0.53.2
ci / personal-data (push) Successful in 5s
ci / test (push) Successful in 3m4s
ci / fuzz (push) Successful in 3m45s

This commit is contained in:
Privatae
2026-10-20 04:42:14 +00:00
commit e4c9b69b46
471 changed files with 159794 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
//go:build windows
package main
import "fmt"
// Windows has no pty in this build (ConPTY is a later step). The lane answers with a
// plain message and exit 1 — "cannot", not "refused" — so the host can say so.
func spawnSessionProc(op, shell string, cols, rows int) (sessionProc, error) {
_, _, _, _ = op, shell, cols, rows
return nil, fmt.Errorf("interactive sessions are not available on Windows yet")
}
// processIsRoot moved to privilege_windows.go — it is a machine-authority
// question, not a terminal one, and living here (returning a flat false beside
// the pty stub) is how it went unnoticed that it locked Windows out of
// anchoring entirely.