mirror of
https://github.com/tailscale/tailscale.git
synced 2025-05-02 13:41:03 +00:00
ssh: don't use -l option for shells on OpenBSD
Shells on OpenBSD don't support the -l option. This means that when handling SSH in-process, we can't give the user a login shell, but this change at least allows connecting at all. Updates #13338 Signed-off-by: Percy Wegmann <percy@tailscale.com>
This commit is contained in:
parent
0e6d99cc36
commit
3f2bec5f64
@ -1096,8 +1096,8 @@ func (ia *incubatorArgs) loginArgs(loginCmdPath string) []string {
|
||||
|
||||
func shellArgs(isShell bool, cmd string) []string {
|
||||
if isShell {
|
||||
if runtime.GOOS == freebsd {
|
||||
// freebsd's shells don't support the "-l" option, so we can't run as a login shell
|
||||
if runtime.GOOS == freebsd || runtime.GOOS == openbsd {
|
||||
// bsd shells don't support the "-l" option, so we can't run as a login shell
|
||||
return []string{}
|
||||
}
|
||||
return []string{"-l"}
|
||||
|
Loading…
x
Reference in New Issue
Block a user