rpms/oxine/devel oxine-0.6.6-o_creat.patch, NONE, 1.1 oxine.spec, 1.2, 1.3

Matthias Saou (thias) fedora-extras-commits at redhat.com
Wed Aug 8 16:35:15 UTC 2007


Author: thias

Update of /cvs/extras/rpms/oxine/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv7142

Modified Files:
	oxine.spec 
Added Files:
	oxine-0.6.6-o_creat.patch 
Log Message:
Include patch to pass (now mandatory) mode to O_CREAT open call.


oxine-0.6.6-o_creat.patch:

--- NEW FILE oxine-0.6.6-o_creat.patch ---
diff -Naupr oxine-0.6.6.orig/src/download.c oxine-0.6.6/src/download.c
--- oxine-0.6.6.orig/src/download.c	2006-10-21 16:19:50.000000000 +0200
+++ oxine-0.6.6/src/download.c	2007-08-08 17:44:31.000000000 +0200
@@ -222,7 +222,7 @@ download_to_cache (const char *url, cons
 
     /* Save the file to the cache. */
     int fd = open (cache_url,
-                   O_CREAT | O_WRONLY | O_TRUNC);
+                   O_CREAT | O_WRONLY | O_TRUNC, 0644);
     if (fd == -1) {
         error (_("Could not create '%s': %s!"), cache_url, strerror (errno));
         download_free (download);


Index: oxine.spec
===================================================================
RCS file: /cvs/extras/rpms/oxine/devel/oxine.spec,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- oxine.spec	5 Aug 2007 16:03:13 -0000	1.2
+++ oxine.spec	8 Aug 2007 16:34:42 -0000	1.3
@@ -1,7 +1,7 @@
 Summary: Lightweight, purely OSD based xine frontend
 Name: oxine
 Version: 0.6.6
-Release: 4%{?dist}
+Release: 5%{?dist}
 License: GPLv2+
 Group: Applications/Multimedia
 URL: http://oxine.sourceforge.net/
@@ -9,6 +9,7 @@
 Source1: oxine.desktop
 Source2: oxine.png
 Patch0: http://downloads.sf.net/oxine/oxine-0_6_0-to-0_6_6.patch
+Patch1: oxine-0.6.6-o_creat.patch
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
 # We need xineplug_decode_image.so for the backgrounds
 Requires: xine-lib-extras
@@ -34,6 +35,7 @@
 %prep
 %setup -q -n oxine-0.6
 %patch0 -p1
+%patch1 -p1 -b .o_creat
 
 
 %build
@@ -83,6 +85,9 @@
 
 
 %changelog
+* Wed Aug  8 2007 Matthias Saou <http://freshrpms.net/> 0.6.6-5
+- Include patch to pass (now mandatory) mode to O_CREAT open call.
+
 * Sun Aug  5 2007 Matthias Saou <http://freshrpms.net/> 0.6.6-4
 - Update License field.
 




More information about the fedora-extras-commits mailing list