1 |
sping 11/12/31 22:45:11 |
2 |
|
3 |
Added: mpack-1.6-cve-2011-4919.patch |
4 |
Log: |
5 |
net-mail/mpack: 1.6-r2 |
6 |
|
7 |
(Portage version: 2.1.10.43/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 net-mail/mpack/files/mpack-1.6-cve-2011-4919.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-mail/mpack/files/mpack-1.6-cve-2011-4919.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-mail/mpack/files/mpack-1.6-cve-2011-4919.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: mpack-1.6-cve-2011-4919.patch |
16 |
=================================================================== |
17 |
From 0c87201f64491575350b18d04c62ec142e119d1f Mon Sep 17 00:00:00 2001 |
18 |
From: Sebastian Pipping <sebastian@×××××××.org> |
19 |
Date: Sat, 31 Dec 2011 20:17:20 +0100 |
20 |
Subject: [PATCH] Fix permissions |
21 |
|
22 |
--- |
23 |
unixos.c | 4 ++-- |
24 |
1 files changed, 2 insertions(+), 2 deletions(-) |
25 |
|
26 |
diff --git a/unixos.c b/unixos.c |
27 |
index fa6d0a7..0e2f469 100644 |
28 |
--- a/unixos.c |
29 |
+++ b/unixos.c |
30 |
@@ -134,9 +134,9 @@ FILE *os_createnewfile(char *fname) |
31 |
FILE *ret; |
32 |
|
33 |
#ifdef O_EXCL |
34 |
- fd=open(fname, O_RDWR|O_CREAT|O_EXCL, 0644); |
35 |
+ fd=open(fname, O_RDWR|O_CREAT|O_EXCL, 0600); |
36 |
#else |
37 |
- fd=open(fname, O_RDWR|O_CREAT|O_TRUNC, 0644); |
38 |
+ fd=open(fname, O_RDWR|O_CREAT|O_TRUNC, 0600); |
39 |
#endif |
40 |
|
41 |
if (fd == -1) |
42 |
-- |
43 |
1.7.8.1 |