sha512sum "$1"
}
`
- case "freebsd":
+ case "freebsd", "openbsd":
compat = `
dir_stat='41777 0 0'
file_stat="100700 $(id -u) $(id -g)"
}
func connGetGoos(stdin io.Writer, stdout *bufio.Reader) (string, error) {
- _, err := fmt.Fprintln(stdin, "uname -o")
+ _, err := fmt.Fprintln(stdin, "uname")
if err != nil {
return "", err
}
// NOTE: Adapt helper uploading in dialSSH() when adding new systems
var goos string
switch x {
- case "GNU/Linux":
+ case "Linux":
goos = "linux"
case "FreeBSD":
goos = "freebsd"
+ case "OpenBSD":
+ goos = "openbsd"
default:
- return "", fmt.Errorf("unsupported OS %q (`uname -o`)", x)
+ return "", fmt.Errorf("unsupported OS %q (`uname`)", x)
}
return goos, nil
}