rpms/efax/devel efax-0.9-msg-va_list.patch, NONE, 1.1 efax.spec, 1.23, 1.24

Than Ngo than at fedoraproject.org
Fri Oct 24 14:33:36 UTC 2008


Author: than

Update of /cvs/extras/rpms/efax/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv31942

Modified Files:
	efax.spec 
Added Files:
	efax-0.9-msg-va_list.patch 
Log Message:
fix efax segfaults while sending fax, thanks to Jeff Bastian



efax-0.9-msg-va_list.patch:

--- NEW FILE efax-0.9-msg-va_list.patch ---
--- efax-0.9/efaxmsg.c.ORIG	1999-03-19 22:38:20.000000000 -0600
+++ efax-0.9/efaxmsg.c	2008-10-14 15:39:12.000000000 -0500
@@ -142,6 +142,8 @@ int msg ( char *fmt, ... ) 
 		logfile[i] ) ;
       }
       vfprintf( logfile[i], p, ap ) ;
+      va_end ( ap );
+      va_start ( ap, fmt );
       if ( flags & S ) fprintf ( logfile[i], " %s", strerror ( errno ) ) ;
       if ( ! ( flags & NOLF ) ) fputs ( "\n", logfile[i] ) ;
       atcol1[i] = flags & NOLF ? 0 : 1 ;


Index: efax.spec
===================================================================
RCS file: /cvs/extras/rpms/efax/devel/efax.spec,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- efax.spec	17 Jul 2008 19:48:43 -0000	1.23
+++ efax.spec	24 Oct 2008 14:33:06 -0000	1.24
@@ -1,7 +1,7 @@
 Summary: A program for faxing using a Class 1, 2 or 2.0 fax modem.
 Name: efax
 Version: 0.9a
-Release: 2.001114%{?dist}
+Release: 3.001114%{?dist}
 License: GPLv2+
 Group: Applications/Communications
 Url: http://www.cce.com/efax/
@@ -14,6 +14,7 @@
 Patch6: efax-0.9-misc.patch
 Patch7: efax-0.9-viewcmd.patch
 Patch8: efax-0.9-quote.patch
+Patch9: efax-0.9-msg-va_list.patch
 
 ExcludeArch: s390 s390x
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -38,6 +39,7 @@
 %patch6 -p1 -b .misc
 %patch7 -p1 -b .viewcmd
 %patch8 -p1 -b .quote
+%patch9 -p1 -b .msg-va_list
 
 %build
 make RPM_OPT_FLAGS="-ansi $RPM_OPT_FLAGS"
@@ -63,6 +65,9 @@
 %dir %{_localstatedir}/log/fax
 
 %changelog
+* Fri Oct 24 2008 Than Ngo <than at redhat.com> 0.9a-3.001114
+- fix efax segfaults while sending fax, thanks to Jeff Bastian
+
 * Thu Jul 17 2008 Tom "spot" Callaway <tcallawa at redhat.com> 0.9a-2.001114
 - fix license tag
 




More information about the scm-commits mailing list