summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2015-07-30 23:09:16 +0000
committerDamien Miller <djm@cvs.openbsd.org>2015-07-30 23:09:16 +0000
commit208fef22682ab57ed435c02950adb612812c259c (patch)
tree7ebd93959235982b03be6284652815edb084d8c0 /usr.bin
parentdc42048c923259322fef12c74fa88d6cf5562ff1 (diff)
fix pty permissions; patch from Nikolay Edigaryev; ok deraadt
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ssh/sshpty.c4
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.