rpms/blender/F-12 blender-2.49b-cve.patch, NONE, 1.1 blender.spec, 1.125, 1.126 blender-2.46rc3-cve-2008-1103-1.patch, 1.1, NONE blender-2.48a-cve-2008-4863.patch, 1.1, NONE
Jochen Schmitt
s4504kr at fedoraproject.org
Mon Jan 18 17:03:23 UTC 2010
- Previous message: rpms/system-config-printer/devel system-config-printer-userdefault-traceback.patch, NONE, 1.1 clog1, 1.2, 1.3 system-config-printer.spec, 1.343, 1.344
- Next message: rpms/system-config-printer/F-11 system-config-printer-serial-widgets.patch, NONE, 1.1 system-config-printer.spec, 1.335, 1.336
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: s4504kr
Update of /cvs/pkgs/rpms/blender/F-12
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv17088
Modified Files:
blender.spec
Added Files:
blender-2.49b-cve.patch
Removed Files:
blender-2.46rc3-cve-2008-1103-1.patch
blender-2.48a-cve-2008-4863.patch
Log Message:
Move quit.blend to ~/.blender
blender-2.49b-cve.patch:
blenkernel/intern/blender.c | 21 +++++++++++++++------
python/BPY_interface.c | 5 +++++
2 files changed, 20 insertions(+), 6 deletions(-)
--- NEW FILE blender-2.49b-cve.patch ---
diff -up blender-2.49b/source/blender/blenkernel/intern/blender.c.cve blender-2.49b/source/blender/blenkernel/intern/blender.c
--- blender-2.49b/source/blender/blenkernel/intern/blender.c.cve 2009-09-01 17:21:17.000000000 +0200
+++ blender-2.49b/source/blender/blenkernel/intern/blender.c 2010-01-13 17:32:11.312632711 +0100
@@ -41,6 +41,7 @@
#define write _write
#endif
+#include <errno.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@@ -753,7 +754,7 @@ void BKE_undo_save_quit(void)
{
UndoElem *uel;
MemFileChunk *chunk;
- int file;
+ int file = -1;
char str[FILE_MAXDIR+FILE_MAXFILE];
if( (U.uiflag & USER_GLOBALUNDO)==0) return;
@@ -767,12 +768,20 @@ void BKE_undo_save_quit(void)
/* no undo state to save */
if(undobase.first==undobase.last) return;
- BLI_make_file_string("/", str, btempdir, "quit.blend");
+ BLI_make_file_string("/", str, BLI_gethome(), ".blender/quit.blend");
- file = open(str,O_BINARY+O_WRONLY+O_CREAT+O_TRUNC, 0666);
- if(file == -1) {
- error("Unable to save %s, check you have permissions", str);
- return;
+ int flags = O_BINARY+O_WRONLY+O_TRUNC+O_EXCL+O_CREAT;
+
+ while(file == -1) {
+ file = open(str,flags,0666);
+ if(file == -1) {
+ if(errno == EEXIST) {
+ flags ^= O_CREAT;
+ } else {
+ error("Unable to save %s, check you have permissions", str);
+ return;
+ }
+ }
}
chunk= uel->memfile.chunks.first;
diff -up blender-2.49b/source/blender/python/BPY_interface.c.cve blender-2.49b/source/blender/python/BPY_interface.c
--- blender-2.49b/source/blender/python/BPY_interface.c.cve 2009-09-01 17:21:12.000000000 +0200
+++ blender-2.49b/source/blender/python/BPY_interface.c 2010-01-13 17:08:19.567752630 +0100
@@ -236,6 +236,11 @@ void BPY_start_python( int argc, char **
Py_Initialize( );
PySys_SetArgv( argc_copy, argv_copy );
+
+ /* Sanitize sys.path to prevent relative imports loading modules in
+ the current working directory */
+ PyRun_SimpleString("import sys; sys.path = filter(None, sys.path)");
+
/* Initialize thread support (also acquires lock) */
PyEval_InitThreads();
Index: blender.spec
===================================================================
RCS file: /cvs/pkgs/rpms/blender/F-12/blender.spec,v
retrieving revision 1.125
retrieving revision 1.126
diff -u -p -r1.125 -r1.126
--- blender.spec 7 Sep 2009 16:43:43 -0000 1.125
+++ blender.spec 18 Jan 2010 17:03:23 -0000 1.126
@@ -5,7 +5,7 @@
Name: blender
Version: 2.49b
-Release: 1%{?dist}
+Release: 5%{?dist}
Summary: 3D modeling, animation, rendering and post-production
@@ -26,8 +26,9 @@ Patch1: blender-2.49-scons.patch
Patch2: blender-2.44-bid.patch
# Both patches are forwarded to upstream via email
-Patch100: blender-2.46rc3-cve-2008-1103-1.patch
-Patch101: blender-2.48a-cve-2008-4863.patch
+#Patch100: blender-2.46rc3-cve-2008-1103-1.patch
+#Patch101: blender-2.48a-cve-2008-4863.patch
+Patch100: blender-2.49b-cve.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -105,8 +106,8 @@ Blender Game Engine.
%patch1 -p1 -b .org
%patch2 -p1 -b .bid
-%patch100 -p1
-%patch101 -p1
+%patch100 -p1 -b .cve
+# %patch101 -p1
# binreloc is not a part of fedora
rm -rf extern/ffmpeg
@@ -168,7 +169,6 @@ mkdir -p ${RPM_BUILD_ROOT}%{blenderarch}
install -pm 755 release/plugins/sequence/*.so ${RPM_BUILD_ROOT}%{blenderarch}/plugins/sequence
install -pm 755 release/plugins/texture/*.so ${RPM_BUILD_ROOT}%{blenderarch}/plugins/texture
-
find bin/.blender/locale -name '.svn' -exec rm -f {} ';'
cp -a bin/.blender/locale ${RPM_BUILD_ROOT}%{_datadir}
@@ -181,7 +181,7 @@ install -pm 644 bin/.blender/.Blanguages
#
# Create link to DejaVu-Sans
#
-ln -sf %{_fontbasedir}/dejavu/DejaVuSans.ttf ${RPM_BUILD_ROOT}%{blenderlib}/.bfont.ttf
+# ln -sf %{_fontbasedir}/dejavu/DejaVuSans.ttf ${RPM_BUILD_ROOT}%{blenderlib}/.bfont.ttf
find ${RPM_BUILD_ROOT}%{blenderlib}/scripts -type f -exec sed -i -e 's/\r$//g' {} \;
@@ -244,6 +244,19 @@ fi || :
%{_bindir}/blenderplayer.bin
%changelog
+* Wed Jan 13 2010 Jochen Schmitt <Jochen herr-schmitt de> - 2.49b-5
+- Add forgotten patch
+
+* Wed Jan 13 2010 Jochen Schmitt <Jochen herr-schmitt de> 2.49b-4
+- Fix O_CREAT issue on existing quit.blend file (#553959)
+- Move quit.blend to ~/.blender
+
+* Mon Nov 23 2009 Jochen Schmitt <Jochen herr-schmitt de> 2.49b-3
+- Remove symlink to DejaVu font from package
+
+* Thu Nov 12 2009 Jochen Schmitt <Jochen herr-schmitt de> 2.49b-2
+- Rebuild
+
* Mon Sep 7 2009 Jochen Schmitt <Jochen herr-schmitt de> 2.49b-1
- New upstream release (#520780)
--- blender-2.46rc3-cve-2008-1103-1.patch DELETED ---
--- blender-2.48a-cve-2008-4863.patch DELETED ---
- Previous message: rpms/system-config-printer/devel system-config-printer-userdefault-traceback.patch, NONE, 1.1 clog1, 1.2, 1.3 system-config-printer.spec, 1.343, 1.344
- Next message: rpms/system-config-printer/F-11 system-config-printer-serial-widgets.patch, NONE, 1.1 system-config-printer.spec, 1.335, 1.336
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the scm-commits
mailing list