diff options
author | Sebastian Pipping <sping@gentoo.org> | 2011-12-31 22:45:11 +0000 |
---|---|---|
committer | Sebastian Pipping <sping@gentoo.org> | 2011-12-31 22:45:11 +0000 |
commit | 882243718969f4c48196f8f37fb5e6edc5395119 (patch) | |
tree | ca74f1b27adba0f16530d71196765a4ea11c9b46 /net-mail/mpack/files | |
parent | Remove old. (diff) | |
download | gentoo-2-882243718969f4c48196f8f37fb5e6edc5395119.tar.gz gentoo-2-882243718969f4c48196f8f37fb5e6edc5395119.tar.bz2 gentoo-2-882243718969f4c48196f8f37fb5e6edc5395119.zip |
net-mail/mpack: 1.6-r2
(Portage version: 2.1.10.43/cvs/Linux x86_64)
Diffstat (limited to 'net-mail/mpack/files')
-rw-r--r-- | net-mail/mpack/files/mpack-1.6-cve-2011-4919.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/net-mail/mpack/files/mpack-1.6-cve-2011-4919.patch b/net-mail/mpack/files/mpack-1.6-cve-2011-4919.patch new file mode 100644 index 000000000000..62a04faa7936 --- /dev/null +++ b/net-mail/mpack/files/mpack-1.6-cve-2011-4919.patch @@ -0,0 +1,28 @@ +From 0c87201f64491575350b18d04c62ec142e119d1f Mon Sep 17 00:00:00 2001 +From: Sebastian Pipping <sebastian@pipping.org> +Date: Sat, 31 Dec 2011 20:17:20 +0100 +Subject: [PATCH] Fix permissions + +--- + unixos.c | 4 ++-- + 1 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/unixos.c b/unixos.c +index fa6d0a7..0e2f469 100644 +--- a/unixos.c ++++ b/unixos.c +@@ -134,9 +134,9 @@ FILE *os_createnewfile(char *fname) + FILE *ret; + + #ifdef O_EXCL +- fd=open(fname, O_RDWR|O_CREAT|O_EXCL, 0644); ++ fd=open(fname, O_RDWR|O_CREAT|O_EXCL, 0600); + #else +- fd=open(fname, O_RDWR|O_CREAT|O_TRUNC, 0644); ++ fd=open(fname, O_RDWR|O_CREAT|O_TRUNC, 0600); + #endif + + if (fd == -1) +-- +1.7.8.1 + |