diff options
author | Darren Tucker <dtucker@dtucker.net> | 2019-07-05 05:21:45 +0200 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2019-07-05 05:23:46 +0200 |
commit | c5cfa90e03432181ffcc7ad3f9f815179bd0c626 (patch) | |
tree | 7d850a3d336d88455af5dd53643bcf5802f01acf | |
parent | upstream: fatal() if getgrnam() cannot find "tty" (diff) | |
download | openssh-c5cfa90e03432181ffcc7ad3f9f815179bd0c626.tar.xz openssh-c5cfa90e03432181ffcc7ad3f9f815179bd0c626.zip |
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@
-rw-r--r-- | sshpty.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |