[blender/f17] Add forgotten O_EXCL in CVE patch

Jochen Schmitt s4504kr at fedoraproject.org
Fri Sep 7 12:49:16 UTC 2012


commit a54650c6b02ac4d9fbce6569089becde1ef437c1
Author: Jochen Schmitt <Jochen at herr-schmitt.de>
Date:   Fri Sep 7 14:49:04 2012 +0200

    Add forgotten O_EXCL in CVE patch

 blender-2.63a-cve.patch |    2 +-
 blender.spec            |    3 +++
 2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/blender-2.63a-cve.patch b/blender-2.63a-cve.patch
index 90fbc0b..d3ef24a 100644
--- a/blender-2.63a-cve.patch
+++ b/blender-2.63a-cve.patch
@@ -15,7 +15,7 @@ diff -up blender-2.63a/source/blender/blenkernel/intern/blender.c.cve blender-2.
  	MemFileChunk *chunk;
 -	int file;
 +	int file = -1;
-+	int flags = O_BINARY+O_WRONLY+O_CREAT+O_TRUNC;
++	int flags = O_BINARY+O_WRONLY+O_CREAT+O_TRUNC+O_EXCL;
  	char str[FILE_MAX];
  	
  	if ( (U.uiflag & USER_GLOBALUNDO)==0) return;
diff --git a/blender.spec b/blender.spec
index b5f1cf2..ca841eb 100644
--- a/blender.spec
+++ b/blender.spec
@@ -296,6 +296,9 @@ fi || :
 %{_sysconfdir}/rpm/macros.blender
 
 %changelog
+* Fri Sep  7 2012 Jochen Schmitt <Jochen herr-schmitt de> - 1:2.63a-3
+- Add forgotten O_EXCL in CVE patch
+
 * Fri Sep  7 2012 Jochen Schmitt <JOchen herr-schmitt de> - 1:2.63a-8
 - Porting blender-2.49b-cve.patch (#855092, CVE-2008-1103)
 


More information about the scm-commits mailing list