summaryrefslogtreecommitdiff
path: root/sshpty.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshpty.c')
-rw-r--r--sshpty.c2
1 files changed, 1 insertions, 1 deletions
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)
172 /* Determine the group to make the owner of the tty. */ 172 /* Determine the group to make the owner of the tty. */
173 grp = getgrnam("tty"); 173 grp = getgrnam("tty");
174 if (grp == NULL) 174 if (grp == NULL)
175 fatal("no tty group"); 175 debug("%s: no tty group", __func__);
176 gid = (grp != NULL) ? grp->gr_gid : pw->pw_gid; 176 gid = (grp != NULL) ? grp->gr_gid : pw->pw_gid;
177 mode = (grp != NULL) ? 0620 : 0600; 177 mode = (grp != NULL) ? 0620 : 0600;
178 178