[blender/f18] Add forgotten O_EXCL in CVE patch

Jochen Schmitt s4504kr at fedoraproject.org
Fri Sep 7 11:34:21 UTC 2012


commit 4935fb83b11b6281921b4c35647bcb6f723b8add
Author: Jochen Schmitt <Jochen at herr-schmitt.de>
Date:   Fri Sep 7 13:23:43 2012 +0200

    Add forgotten O_EXCL in CVE patch

 blender-2.63a-cve.patch |    2 +-
 blender.spec            |    9 ++++++---
 2 files changed, 7 insertions(+), 4 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 7d44f24..ef77120 100644
--- a/blender.spec
+++ b/blender.spec
@@ -12,8 +12,8 @@
 
 Name:           blender
 Epoch:          1
-Version:        %{blender_api}a
-Release:        8%{?dist}
+Version:        %{blender_api}
+Release:        9%{?dist}
 
 Summary:        3D modeling, animation, rendering and post-production
 
@@ -300,7 +300,10 @@ fi || :
 %{_sysconfdir}/rpm/macros.blender
 
 %changelog
-* Fri Sep  7 2012 Jochen Schmitt <JOchen herr-schmitt de> - 1:2.63a-8
+* Fri Sep  7 2012 Jochen Schmitt <JOchen herr-schmitt de> - 1:2.63a-9
+- Add forgotten O_EXCL to CVE-patch
+
+* Thu Sep  6 2012 Jochen Schmitt <JOchen herr-schmitt de> - 1:2.63a-8
 - Porting blender-2.49b-cve.patch (#855092, CVE-2008-1103)
 
 * Fri Aug 10 2012 Richard Shaw <hobbes1069 at gmail.com> - 1:2.63a-7


More information about the scm-commits mailing list