mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-16 03:31:39 +00:00
ssh/tailssh: fix gokrazy SSH crash
Stupid mistake in earlier refactor. Updates gokrazy/gokrazy#209 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
parent
25a8daf405
commit
bd02d00608
@ -59,12 +59,14 @@ func userLookup(username string) (*userMeta, error) {
|
|||||||
if distro.Get() == distro.Gokrazy {
|
if distro.Get() == distro.Gokrazy {
|
||||||
um, err := userLookupStd(username)
|
um, err := userLookupStd(username)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
um.User = user.User{
|
um = &userMeta{
|
||||||
Uid: "0",
|
User: user.User{
|
||||||
Gid: "0",
|
Uid: "0",
|
||||||
Username: "root",
|
Gid: "0",
|
||||||
Name: "Gokrazy",
|
Username: "root",
|
||||||
HomeDir: "/",
|
Name: "Gokrazy",
|
||||||
|
HomeDir: "/",
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
um.loginShellCached = "/tmp/serial-busybox/ash"
|
um.loginShellCached = "/tmp/serial-busybox/ash"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user