summaryrefslogtreecommitdiffstats
path: root/patches/screen-4.5.0/0007-Fix-privilege-escalation-by-reverting-upstream-commi.patch
blob: 134934f3dfb08cf620d26ea5a3a64d45452d35b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From: Axel Beckert <abe@debian.org>
Date: Mon, 3 Jul 2017 10:46:08 +0200
Subject: [PATCH] Fix privilege escalation by reverting upstream commit
 5460f5d2

Bug-Debian: https://bugs.debian.org/852484
Bug-CVE: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-5618
Bug: https://savannah.gnu.org/bugs/?50142
     https://lists.gnu.org/archive/html/screen-devel/2017-01/msg00025.html
---
 screen.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/screen.c b/screen.c
index 7cad20626f2b..e60d0a712fb5 100644
--- a/screen.c
+++ b/screen.c
@@ -673,12 +673,6 @@ int main(int ac, char** av)
                 Panic(0, "-L: logfile name can not start with \"-\" symbol");
               if (strlen(screenlogfile) > PATH_MAX)
                 Panic(0, "-L: logfile name too long. (max. %d char)", PATH_MAX);
-
-              FILE *w_check;
-              if ((w_check = fopen(screenlogfile, "w")) == NULL)
-                Panic(0, "-L: logfile name access problem");
-              else
-                fclose(w_check);
             }
             nwin_options.Lflag = 1;
             break;