[blender] Add forgotten O_EXCL to CVE-patch
Jochen Schmitt
s4504kr at fedoraproject.org
Fri Sep 7 11:23:59 UTC 2012
commit d1524bfb4e5077e70dc9aded216bd8ca5e7718e5
Author: Jochen Schmitt <Jochen at herr-schmitt.de>
Date: Fri Sep 7 13:23:43 2012 +0200
Add forgotten O_EXCL to CVE-patch
blender-2.63a-cve.patch | 2 +-
blender.spec | 5 ++++-
2 files changed, 5 insertions(+), 2 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 16be9b0..9fb7475 100644
--- a/blender.spec
+++ b/blender.spec
@@ -13,7 +13,7 @@
Name: blender
Epoch: 1
Version: %{blender_api}a
-Release: 9%{?dist}
+Release: 10%{?dist}
Summary: 3D modeling, animation, rendering and post-production
@@ -300,6 +300,9 @@ fi || :
%{_sysconfdir}/rpm/macros.blender
%changelog
+* Fri Sep 7 2012 Jochen Schmitt <JOchen herr-schmitt de> - 1:2.63a-10
+- Add forgotten O_EXCL to CVE-patch
+
* Fri Sep 7 2012 Jochen Schmitt <s4504kr at omega.in.herr-schmitt.de> - 1:2.63a-9
- Fix corrupted patch
More information about the scm-commits
mailing list