mirror of
https://github.com/tailscale/tailscale.git
synced 2026-12-06 23:36:34 +09:00
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>