rpms/pcsc-lite/devel pcsc-lite-1.6.1-crash_with_no_conf.patch, NONE, 1.1 pcsc-lite.spec, 1.29, 1.30

Kalev Lember kalev at fedoraproject.org
Sun Jul 4 21:19:06 UTC 2010


Author: kalev

Update of /cvs/pkgs/rpms/pcsc-lite/devel
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv5546

Modified Files:
	pcsc-lite.spec 
Added Files:
	pcsc-lite-1.6.1-crash_with_no_conf.patch 
Log Message:
Patch to fix crash with empty config directory


pcsc-lite-1.6.1-crash_with_no_conf.patch:
 readerfactory.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- NEW FILE pcsc-lite-1.6.1-crash_with_no_conf.patch ---
diff -up pcsc-lite-1.6.1/src/readerfactory.c.orig pcsc-lite-1.6.1/src/readerfactory.c
--- pcsc-lite-1.6.1/src/readerfactory.c.orig	2010-07-04 23:42:14.000000000 +0300
+++ pcsc-lite-1.6.1/src/readerfactory.c	2010-07-04 23:42:23.000000000 +0300
@@ -1312,7 +1312,7 @@ void RFCleanupReaders(void)
 #ifdef USE_SERIAL
 int RFStartSerialReaders(const char *readerconf)
 {
-	SerialReader *reader_list;
+	SerialReader *reader_list = NULL;
 	int i, rv;
 
 	/* remember the configuration filename for RFReCheckReaderConf() */


Index: pcsc-lite.spec
===================================================================
RCS file: /cvs/pkgs/rpms/pcsc-lite/devel/pcsc-lite.spec,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -p -r1.29 -r1.30
--- pcsc-lite.spec	4 Jul 2010 01:14:52 -0000	1.29
+++ pcsc-lite.spec	4 Jul 2010 21:19:06 -0000	1.30
@@ -2,7 +2,7 @@
 
 Name:           pcsc-lite
 Version:        1.6.1
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        PC/SC Lite smart card framework and applications
 
 Group:          System Environment/Daemons
@@ -14,6 +14,8 @@ Patch0:         %{name}-1.4-docinst.patc
 Patch1:         %{name}-1.5.5-rpath64.patch
 # http://lists.drizzle.com/pipermail/muscle/2010-July/008411.html
 Patch2:         %{name}-1.6.1-config_dir.patch
+# http://lists.drizzle.com/pipermail/muscle/2010-July/008413.html
+Patch3:         %{name}-1.6.1-crash_with_no_conf.patch
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
@@ -65,6 +67,7 @@ BuildArch:      noarch
 %patch0 -p0 -b .docinst
 %patch1 -p1 -b .rpath64
 %patch2 -p0 -b .config_dir
+%patch3 -p1 -b .crash_with_no_conf
 
 # Convert to utf-8
 for file in ChangeLog; do
@@ -148,6 +151,9 @@ fi
 
 
 %changelog
+* Mon Jul 05 2010 Kalev Lember <kalev at smartlink.ee> - 1.6.1-4
+- Patch to fix crash with empty config directory
+
 * Sun Jul 04 2010 Kalev Lember <kalev at smartlink.ee> - 1.6.1-3
 - Patch to fix config dir handling
 



More information about the scm-commits mailing list