diff options
author | 2015-07-30 23:09:15 +0000 | |
---|---|---|
committer | 2015-07-30 23:09:15 +0000 | |
commit | 4a036a2a9c65314ae57fa508abdcb35dfa42f446 (patch) | |
tree | 85497423fb30c9738c0589602775f64899586a10 /usr.bin/ssh/sshpty.c | |
parent | Change installer to cope with the new sshd_config(5) default for (diff) | |
download | wireguard-openbsd-4a036a2a9c65314ae57fa508abdcb35dfa42f446.tar.xz wireguard-openbsd-4a036a2a9c65314ae57fa508abdcb35dfa42f446.zip |
fix pty permissions; patch from Nikolay Edigaryev; ok deraadt
Diffstat (limited to 'usr.bin/ssh/sshpty.c')
-rw-r--r-- | usr.bin/ssh/sshpty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/sshpty.c b/usr.bin/ssh/sshpty.c index a2ac1d7b578..138a8d4d08e 100644 --- a/usr.bin/ssh/sshpty.c +++ b/usr.bin/ssh/sshpty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sshpty.c,v 1.29 2014/09/03 18:55:07 djm Exp $ */ +/* $OpenBSD: sshpty.c,v 1.30 2015/07/30 23:09:15 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -142,7 +142,7 @@ pty_setowner(struct passwd *pw, const char *tty) /* Determine the group to make the owner of the tty. */ grp = getgrnam("tty"); gid = (grp != NULL) ? grp->gr_gid : pw->pw_gid; - mode = (grp != NULL) ? 0622 : 0600; + mode = (grp != NULL) ? 0620 : 0600; /* * Change owner and mode of the tty as required. |