summaryrefslogtreecommitdiff
path: root/debian/patches/backport-fix-pty-permissions.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/backport-fix-pty-permissions.patch')
-rw-r--r--debian/patches/backport-fix-pty-permissions.patch33
1 files changed, 0 insertions, 33 deletions
diff --git a/debian/patches/backport-fix-pty-permissions.patch b/debian/patches/backport-fix-pty-permissions.patch
deleted file mode 100644
index 1449014c0..000000000
--- a/debian/patches/backport-fix-pty-permissions.patch
+++ /dev/null
@@ -1,33 +0,0 @@
1From fe597b453a89c6d1dcbbd91cacef80adc3b52fc9 Mon Sep 17 00:00:00 2001
2From: "djm@openbsd.org" <djm@openbsd.org>
3Date: Thu, 30 Jul 2015 23:09:15 +0000
4Subject: Fix pty permissions
5
6Origin: upstream, https://anongit.mindrot.org/openssh.git/commit/?id=6f941396b6835ad18018845f515b0c4fe20be21a
7Forwarded: not-needed
8Last-Update: 2015-08-19
9
10Patch-Name: backport-fix-pty-permissions.patch
11---
12 sshpty.c | 4 ++--
13 1 file changed, 2 insertions(+), 2 deletions(-)
14
15diff --git a/sshpty.c b/sshpty.c
16index 0e32b39..e89efb7 100644
17--- a/sshpty.c
18+++ b/sshpty.c
19@@ -1,4 +1,4 @@
20-/* $OpenBSD: sshpty.c,v 1.29 2014/09/03 18:55:07 djm Exp $ */
21+/* $OpenBSD: sshpty.c,v 1.30 2015/07/30 23:09:15 djm Exp $ */
22 /*
23 * Author: Tatu Ylonen <ylo@cs.hut.fi>
24 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
25@@ -197,7 +197,7 @@ pty_setowner(struct passwd *pw, const char *tty, const char *role)
26 /* Determine the group to make the owner of the tty. */
27 grp = getgrnam("tty");
28 gid = (grp != NULL) ? grp->gr_gid : pw->pw_gid;
29- mode = (grp != NULL) ? 0622 : 0600;
30+ mode = (grp != NULL) ? 0620 : 0600;
31
32 /*
33 * Change owner and mode of the tty as required.