SOURCES: perl-Term-Gnuplot-vga.patch - updated for 0.90380905

qboosh qboosh at pld-linux.org
Mon Oct 23 20:55:30 CEST 2006


Author: qboosh                       Date: Mon Oct 23 18:55:30 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- updated for 0.90380905

---- Files affected:
SOURCES:
   perl-Term-Gnuplot-vga.patch (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SOURCES/perl-Term-Gnuplot-vga.patch
diff -u SOURCES/perl-Term-Gnuplot-vga.patch:1.1 SOURCES/perl-Term-Gnuplot-vga.patch:1.2
--- SOURCES/perl-Term-Gnuplot-vga.patch:1.1	Tue May  4 20:34:12 2004
+++ SOURCES/perl-Term-Gnuplot-vga.patch	Mon Oct 23 20:55:25 2006
@@ -1,16 +1,26 @@
---- Term-Gnuplot-0.5704/gnuterm/term/linux.trm.orig	1999-11-05 01:05:51.000000000 +0100
-+++ Term-Gnuplot-0.5704/gnuterm/term/linux.trm	2003-10-25 21:05:50.900148216 +0200
-@@ -98,8 +98,6 @@
+--- Term-Gnuplot-0.90380905/gnuterm/term/linux.trm.orig	2002-07-26 19:42:28.000000000 +0200
++++ Term-Gnuplot-0.90380905/gnuterm/term/linux.trm	2006-10-23 20:54:27.498821500 +0200
+@@ -101,8 +101,6 @@
  static int linux_startx, linux_starty, linux_lasty;
  static int linux_angle;
- int LINUX_graphics_allowed;
--extern void drop_privilege();
--extern void take_privilege();
+ TERM_PUBLIC int LINUX_graphics_allowed = FALSE; /* also used in vgagl.trm */
+-extern void drop_privilege __PROTO((void));
+-extern void take_privilege __PROTO((void));
  
- typedef (*linux_line_func_ptr) __PROTO((int x1, int y1, int x2, int y2));
+ typedef int (*linux_line_func_ptr) __PROTO((int x1, int y1, int x2, int y2));
  
-@@ -132,9 +130,7 @@
- 	    LINUX_graphics_allowed = TRUE;
+@@ -122,9 +120,6 @@
+ 
+     LINUX_graphics_allowed = FALSE;
+ 
+-    if (geteuid() != 0)
+-	return;			/* if we aren't root, we cannot init graphics */
+-
+     if ((pipe = popen("/usr/bin/tty", "r")) != NULL) {
+ 	line[0] = 0;
+ 	fgets(line, 256, pipe);
+@@ -148,9 +143,7 @@
+ 	}
      }
      if (LINUX_graphics_allowed) {
 -	take_privilege();
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/perl-Term-Gnuplot-vga.patch?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list