Skip to content

Commit

Permalink
ssh/tailssh: fix gokrazy SSH crash
Browse files Browse the repository at this point in the history
Stupid mistake in earlier refactor.

Updates gokrazy/gokrazy#209

Signed-off-by: Brad Fitzpatrick <[email protected]>
  • Loading branch information
bradfitz committed Aug 15, 2023
1 parent 25a8daf commit bd02d00
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions ssh/tailssh/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,14 @@ func userLookup(username string) (*userMeta, error) {
if distro.Get() == distro.Gokrazy {
um, err := userLookupStd(username)
if err != nil {
um.User = user.User{
Uid: "0",
Gid: "0",
Username: "root",
Name: "Gokrazy",
HomeDir: "/",
um = &userMeta{
User: user.User{
Uid: "0",
Gid: "0",
Username: "root",
Name: "Gokrazy",
HomeDir: "/",
},
}
}
um.loginShellCached = "/tmp/serial-busybox/ash"
Expand Down

0 comments on commit bd02d00

Please sign in to comment.