rpms/minicom/devel minicom-2.2-ttyerror.patch, NONE, 1.1 minicom.spec, 1.25, 1.26

Miroslav Lichvar (mlichvar) fedora-extras-commits at redhat.com
Wed Jul 25 13:34:38 UTC 2007


Author: mlichvar

Update of /cvs/pkgs/rpms/minicom/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv7831

Modified Files:
	minicom.spec 
Added Files:
	minicom-2.2-ttyerror.patch 
Log Message:
- check for errors on tty device (#248701)


minicom-2.2-ttyerror.patch:

--- NEW FILE minicom-2.2-ttyerror.patch ---
--- minicom-2.2/src/ipc.c.ttyerror	2005-10-31 11:31:38.000000000 +0100
+++ minicom-2.2/src/ipc.c	2007-07-25 15:22:28.000000000 +0200
@@ -62,6 +62,8 @@ int check_io(int fd1, int fd2, int tmout
       if (!i && portfd_is_socket && portfd == fd1)
         term_socket_close();
 #endif /* USE_SOCKET */
+      if (i <= 0 && !portfd_is_socket && portfd == fd1)
+        leave(_("Read error on tty device."));
     }
     buf[i > 0 ? i : 0] = 0;
     if (buflen)


Index: minicom.spec
===================================================================
RCS file: /cvs/pkgs/rpms/minicom/devel/minicom.spec,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- minicom.spec	10 Jul 2007 12:59:45 -0000	1.25
+++ minicom.spec	25 Jul 2007 13:34:06 -0000	1.26
@@ -1,7 +1,7 @@
 Summary: A text-based modem control and terminal emulation program
 Name: minicom
 Version: 2.2
-Release: 2%{?dist}
+Release: 3%{?dist}
 URL: http://alioth.debian.org/projects/minicom/
 License: GPL
 Group: Applications/Communications
@@ -23,6 +23,7 @@
 Patch9: minicom-2.2-esc.patch
 Patch10: minicom-2.2-staticbuf.patch
 Patch11: minicom-2.2-sigs.patch
+Patch12: minicom-2.2-ttyerror.patch
 
 %description
 Minicom is a simple text-based modem control and terminal emulation
@@ -43,6 +44,7 @@
 %patch9 -p1 -b .esc
 %patch10 -p1 -b .staticbuf
 %patch11 -p1 -b .sigs
+%patch12 -p1 -b .ttyerror
 
 %build
 %configure
@@ -71,6 +73,9 @@
 %{_mandir}/man1/*
 
 %changelog
+* Wed Jul 25 2007 Miroslav Lichvar <mlichvar at redhat.com> 2.2-3
+- check for errors on tty device (#248701)
+
 * Tue Jul 10 2007 Miroslav Lichvar <mlichvar at redhat.com> 2.2-2
 - improve signal handling a bit (#246465)
 




More information about the scm-commits mailing list