rpms/pilot-link/FC-5 pilot-link-0.11.8-realpath.path, NONE, 1.1 pilot-link.spec, 1.40, 1.41

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Fri Apr 14 16:17:06 UTC 2006


Author: than

Update of /cvs/dist/rpms/pilot-link/FC-5
In directory cvs.devel.redhat.com:/tmp/cvs-serv27070

Modified Files:
	pilot-link.spec 
Added Files:
	pilot-link-0.11.8-realpath.path 
Log Message:
fix pilot-xfer crash on missing device node #186779




--- NEW FILE pilot-link-0.11.8-realpath.path ---
--- pilot-link-0.11.8/libpisock/connect.c.orig	2006-04-14 17:58:37.000000000 +0200
+++ pilot-link-0.11.8/libpisock/connect.c	2006-04-14 18:01:37.000000000 +0200
@@ -24,6 +24,12 @@
 #include <errno.h>
 #include <unistd.h>
 #include <sys/stat.h>
+#include <limits.h>
+
+/* PATH_MAX is not defined in limits.h on some platforms */
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
 
 #include "pi-socket.h"
 #include "pi-dlp.h"
@@ -106,7 +112,7 @@
 
 
 		if (portname) {
-			char realport[50];
+			char realport[PATH_MAX];
 			realpath(portname, realport);
 			errno = save_errno;
 


Index: pilot-link.spec
===================================================================
RCS file: /cvs/dist/rpms/pilot-link/FC-5/pilot-link.spec,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -r1.40 -r1.41
--- pilot-link.spec	29 Mar 2006 20:26:36 -0000	1.40
+++ pilot-link.spec	14 Apr 2006 16:17:03 -0000	1.41
@@ -4,7 +4,7 @@
 Summary: File transfer utilities between Linux and PalmPilots.
 Name: pilot-link
 Version: 0.11.8
-Release: 12.2.fc5
+Release: 12.3.fc5
 Source: pilot-link-%{version}.tar.bz2
 Url: http://www.pilot-link.org/
 Patch1: pilot-link-0.11.0-perlmd5.patch
@@ -15,6 +15,7 @@
 Patch7: pilot-link-0.11.8-readfile.patch
 Patch8: pilot-link-0.11.8-underquoted.patch
 Patch9: pilot-link-0.11.8-misc1.patch
+Patch10: pilot-link-0.11.8-realpath.path
 Epoch: 2
 License: GPL
 Group: Applications/Communications
@@ -69,9 +70,10 @@
 %patch7 -p1 -b .read
 %patch8 -p1 -b .underquoted
 %patch9 -p1 -b .misc1
+%patch10 -p1 -b .realpath
 
 %build
-CFLAGS="$RPM_OPT_FLAGS" %configure \
+CFLAGS="%{optflags}" %configure \
   --with-python=no \
   --with-itcl=no \
   --with-tk=no \
@@ -87,13 +89,13 @@
 make
 
 %install
-rm -rf $RPM_BUILD_ROOT
+rm -rf %{buildroot}
 
 %if %{support_perl}
 if test -f bindings/Perl/Makefile.PL ; then
    cd bindings/Perl
    perl -pi -e 's|^\$libdir =.*|\$libdir = "%{buildroot}%{_libdir}";|g' Makefile.PL
-   CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT/usr INSTALLDIRS=vendor
+   CFLAGS="%{optflags}" perl Makefile.PL PREFIX=%{buildroot}%{_prefix} INSTALLDIRS=vendor
    make
    cd ../..
 fi
@@ -109,7 +111,7 @@
 %endif
 
 # remove files we don't want to include
-rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
+rm -f %{buildroot}%{_libdir}/*.la
 
 # remove broken prog
 rm -f %{buildroot}%{_bindir}/pilot-prc
@@ -119,7 +121,7 @@
 %postun -p /sbin/ldconfig
 
 %clean
-rm -rf $RPM_BUILD_ROOT
+rm -rf %{buildroot}
 
 %files
 %defattr(-,root,root)
@@ -141,6 +143,9 @@
 %{_datadir}/aclocal/*.m4
 
 %changelog
+* Fri Apr 14 2006 Than Ngo <than at redhat.com> 2:0.11.8-12.3.fc5
+- fix pilot-xfer crash on missing device node #186779
+
 * Wed Mar 29 2006 Than Ngo <than at redhat.com> 2:0.11.8-12.2.fc5 
 - rebuild to get rid of libpisock.so.9
 




More information about the fedora-cvs-commits mailing list