[AVFS] Patches needed for building avfs packages

Oliver Burger <[email protected]> Wed, 08 Feb 2012 10:41:38 +0100
Newsgroups gmane.comp.file-systems.avfs.user
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--------------010607000804020407010305
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Hi there,

could you look at the two patches attached to this mail? I needed them 
to build an avfs package on Mageia.
One of them is actually stolen from Debian, the other one is done by me, 
but Debian do have the same one.

Thanks,

Oliver

--------------010607000804020407010305
Content-Type: text/x-patch;
 name="avfs-1.0.0-deb-o_creat.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="avfs-1.0.0-deb-o_creat.patch"

diff -ruN avfs-1.0.0.orig/modules/urar.c avfs-1.0.0/modules/urar.c
--- avfs-1.0.0.orig/modules/urar.c	2010-03-09 19:38:07.000000000 +0100
+++ avfs-1.0.0/modules/urar.c	2012-02-08 10:10:20.918629493 +0100
@@ -587,7 +587,7 @@
     if(res < 0)
         return res;
 
-    fd = open(tmpfile, O_RDWR | O_CREAT | O_TRUNC);
+    fd = open(tmpfile, O_RDWR | O_CREAT | O_TRUNC, 0644);
     if(fd == -1) {
         res = -errno; 
         av_log(AVLOG_ERROR, "RAR: Could not open %s: %s", tmpfile,

--------------010607000804020407010305
Content-Type: text/x-patch;
 name="avfs-1.0.0-mga-string-format.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="avfs-1.0.0-mga-string-format.patch"

diff -ruN avfs-1.0.0.orig/avfscoda/dispatch.c avfs-1.0.0/avfscoda/dispatch.c
--- avfs-1.0.0.orig/avfscoda/dispatch.c	2010-03-09 19:38:07.000000000 +0100
+++ avfs-1.0.0/avfscoda/dispatch.c	2012-02-08 10:07:53.558604806 +0100
@@ -147,7 +147,7 @@
     va_end(ap);
 
     buf[LOGMSG_SIZE] = '\0';
-    syslog(LOG_INFO, buf);
+    syslog(LOG_INFO, "%s", buf);
     log(buf);
 }
 
diff -ruN avfs-1.0.0.orig/src/sysdeps.c avfs-1.0.0/src/sysdeps.c
--- avfs-1.0.0.orig/src/sysdeps.c	2010-09-01 22:16:31.000000000 +0200
+++ avfs-1.0.0/src/sysdeps.c	2012-02-08 09:21:13.708405329 +0100
@@ -209,7 +209,7 @@
     va_end(ap);
 
     if(logfile == NULL)
-        syslog(LOG_INFO, buf);
+        syslog(LOG_INFO, "%s", buf);
     else
         filelog(buf);
     AV_UNLOCK(loglock);

--------------010607000804020407010305
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
--------------010607000804020407010305
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Avf-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/avf-user

--------------010607000804020407010305--