rpms/gpm/F-7 gpm-1.20.1-default-handler.patch, 1.1, 1.2 gpm.spec, 1.53, 1.54

Tomas Janousek (tjanouse) fedora-extras-commits at redhat.com
Wed May 23 13:20:29 UTC 2007


Author: tjanouse

Update of /cvs/pkgs/rpms/gpm/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv4536

Modified Files:
	gpm-1.20.1-default-handler.patch gpm.spec 
Log Message:
typo & patch fix


gpm-1.20.1-default-handler.patch:

Index: gpm-1.20.1-default-handler.patch
===================================================================
RCS file: /cvs/pkgs/rpms/gpm/F-7/gpm-1.20.1-default-handler.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- gpm-1.20.1-default-handler.patch	23 May 2007 13:07:16 -0000	1.1
+++ gpm-1.20.1-default-handler.patch	23 May 2007 13:19:54 -0000	1.2
@@ -1,21 +1,21 @@
---- gpm-1.20.1/src/lib/liblow.c.orig	2002-12-24 23:57:16.000000000 +0100
-+++ gpm-1.20.1/src/lib/liblow.c	2007-05-17 01:48:02.000000000 +0200
-@@ -249,7 +249,7 @@
+--- gpm-1.20.1/src/lib/liblow.c.default-handler	2007-05-23 15:15:01.000000000 +0200
++++ gpm-1.20.1/src/lib/liblow.c	2007-05-23 15:16:26.000000000 +0200
+@@ -250,7 +250,7 @@
              gpm_report(GPM_PR_OOPS,GPM_MESS_NO_MEM);
-          memcpy(tty,option.consolename,strlen(option.consolename)-1);
-          sprintf(&tty[strlen(option.consolename)-1],"%i",flag);
+          memcpy(tty,consolename,strlen(consolename)-1);
+          sprintf(&tty[strlen(consolename)-1],"%i",flag);
 -      } else { /* use your current vc */ 
 +      } else if (flag==0) { /* use your current vc */ 
           if (isatty(0)) tty = ttyname(0);             /* stdin */
           if (!tty && isatty(1)) tty = ttyname(1);     /* stdout */
           if (!tty && isatty(2)) tty = ttyname(2);     /* stderr */
-@@ -265,7 +265,8 @@
+@@ -271,7 +271,8 @@
           }
-           
-          conn->vc=atoi(&tty[strlen(option.consolename)-1]);
+ #endif
+          conn->vc=atoi(&tty[strlen(consolename)-1]);
 -      }
 +      } else /* a default handler -- use console */
-+        tty = strdup(option.consolename);
++	 tty = strdup(consolename);
  
        if (gpm_consolefd == -1)
           if ((gpm_consolefd=open(tty,O_WRONLY)) < 0) {


Index: gpm.spec
===================================================================
RCS file: /cvs/pkgs/rpms/gpm/F-7/gpm.spec,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -r1.53 -r1.54
--- gpm.spec	23 May 2007 13:07:16 -0000	1.53
+++ gpm.spec	23 May 2007 13:19:54 -0000	1.54
@@ -69,7 +69,7 @@
 %patch22 -p1 -b .close-fds
 %patch23 -p1 -b .aligned-sleep
 %patch24 -p1 -b .deadsocket
-%patch25 -p1 -b /default-handler
+%patch25 -p1 -b .default-handler
 
 %build
 rm -f configure




More information about the fedora-extras-commits mailing list