summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/screen/screen-4.0.3/screen-4.0.2-CVE-2009-1215.patch
blob: 538a8fa3b28028d731a1dc38b36c6b56ef34a1bd (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
Upstream-Status: Backport

This patch is a backport from screen_4.0.3-11+lenny1.diff 
to fix CVE-2009-1215.

Signed-off-by:  Shenbo Huang<shenbo.huang@windriver.com)
---
	properly by keeping the umask instead of dropping
	the 'public exchange file' concept. Modify dpatch 22.
	<http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521123>
---
 fileio.c |    5 -----
 1 file changed, 5 deletions(-)
--- a/fileio.c
+++ b/fileio.c
@@ -365,11 +365,6 @@ int dump;
   char *mode = "w";
 #ifdef COPY_PASTE
   int public = 0;
-# ifdef _MODE_T
-  mode_t old_umask;
-# else
-  int old_umask;
-# endif
 # ifdef HAVE_LSTAT
   struct stat stb, stb2;
   int fd, exists = 0;