Files
Privatae e4c9b69b46
ci / personal-data (push) Successful in 5s
ci / test (push) Successful in 3m4s
ci / fuzz (push) Successful in 3m45s
bastion 0.53.2
2026-10-20 04:42:14 +00:00

18 lines
669 B
Go

//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.