[openssh-commits] [openssh] 01/01: Do not fatal on failed lookup of group "tty".

git+noreply at mindrot.org git+noreply at mindrot.org
Fri Jul 5 13:24:06 AEST 2019


This is an automated email from the git hooks/post-receive script.

dtucker pushed a commit to branch master
in repository openssh.

commit c5cfa90e03432181ffcc7ad3f9f815179bd0c626
Author: Darren Tucker <dtucker at dtucker.net>
Date:   Fri Jul 5 13:21:45 2019 +1000

    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 9ad8e95c..bce09e25 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;
 

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list