diff options
author | Colin Watson <cjwatson@debian.org> | 2015-08-22 10:05:45 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2015-08-22 10:05:45 +0100 |
commit | 58ddb8ad21f21f5358db0204c4ba9abf94a1ca11 (patch) | |
tree | c55df1f23e6fa0fb87a96d8ec4c06a68c3a82b45 /sshpty.c | |
parent | 544df7a04ae5b5c1fc30be7c445ad685d7a02dc9 (diff) | |
parent | 1dc8d93ce69d6565747eb44446ed117187621b26 (diff) |
Import openssh_7.0p1.orig.tar.gz
Diffstat (limited to 'sshpty.c')
-rw-r--r-- | sshpty.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sshpty.c,v 1.29 2014/09/03 18:55:07 djm Exp $ */ | 1 | /* $OpenBSD: sshpty.c,v 1.30 2015/07/30 23:09:15 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -197,7 +197,7 @@ pty_setowner(struct passwd *pw, const char *tty) | |||
197 | /* Determine the group to make the owner of the tty. */ | 197 | /* Determine the group to make the owner of the tty. */ |
198 | grp = getgrnam("tty"); | 198 | grp = getgrnam("tty"); |
199 | gid = (grp != NULL) ? grp->gr_gid : pw->pw_gid; | 199 | gid = (grp != NULL) ? grp->gr_gid : pw->pw_gid; |
200 | mode = (grp != NULL) ? 0622 : 0600; | 200 | mode = (grp != NULL) ? 0620 : 0600; |
201 | 201 | ||
202 | /* | 202 | /* |
203 | * Change owner and mode of the tty as required. | 203 | * Change owner and mode of the tty as required. |