From c5cfa90e03432181ffcc7ad3f9f815179bd0c626 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Fri, 5 Jul 2019 13:21:45 +1000 Subject: Do not fatal on failed lookup of group "tty". Some platforms (eg AIX and Cygwin) do not have a "tty" group. In those cases we will fall back to making the tty device the user's primary group, so do not fatal if the group lookup fails. ok djm@ --- sshpty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sshpty.c b/sshpty.c index 9ad8e95c8..bce09e255 100644 --- a/sshpty.c +++ b/sshpty.c @@ -172,7 +172,7 @@ pty_setowner(struct passwd *pw, const char *tty) /* Determine the group to make the owner of the tty. */ grp = getgrnam("tty"); if (grp == NULL) - fatal("no tty group"); + debug("%s: no tty group", __func__); gid = (grp != NULL) ? grp->gr_gid : pw->pw_gid; mode = (grp != NULL) ? 0620 : 0600; -- cgit v1.2.3