Files
tailscale/ssh/tailssh
Brad Fitzpatrick 39bc0bd418 ssh/tailssh: propagate command exit codes through macOS login
macOS login forks the command and always exits 0, so Tailscale SSH
commands run as root on macOS always reported exit status 0. Run login
as a child instead, with a /bin/sh wrapper that writes the command's
exit status to a temp file, and exit with that status.

Also add a macOS job to the ssh-integrationtest workflow, which would
have caught this, and fix the integration tests that assumed /proc or
Linux stty output.

Fixes #18256

Change-Id: I694595f92edb41109d50018d6c221826eef5d0b8
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2026-12-05 01:51:22 +00:00
..
2026-04-10 10:48:50 -07:00