mirror of
https://github.com/tailscale/tailscale.git
synced 2025-12-28 08:13:11 +00:00
ssh/tailssh: fix /usr/bin/login args on macOS
Fixes #4931 Signed-off-by: Adam Eijdenberg <adam@continusec.com>
This commit is contained in:
committed by
Brad Fitzpatrick
parent
35782f891d
commit
7f807fef6c
@@ -206,7 +206,7 @@ func beIncubator(args []string) error {
|
||||
// If we are trying to launch a login shell, just exec into login
|
||||
// instead. We can only do this if a TTY was requested, otherwise login
|
||||
// exits immediately, which breaks things likes mosh and VSCode.
|
||||
return unix.Exec(ia.loginCmdPath, []string{ia.loginCmdPath, "-f", ia.localUser, "-h", ia.remoteIP, "-p"}, os.Environ())
|
||||
return unix.Exec(ia.loginCmdPath, ia.loginArgs(), os.Environ())
|
||||
}
|
||||
|
||||
// Inform the system that we are about to log someone in.
|
||||
|
||||
Reference in New Issue
Block a user