packages: xscreensaver/xscreensaver-test-passwd-segv-tty.patch (NEW) - fix ...

baggins baggins at pld-linux.org
Fri May 6 12:42:55 CEST 2011


Author: baggins                      Date: Fri May  6 10:42:55 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- fix sigsegv in passwd driver

---- Files affected:
packages/xscreensaver:
   xscreensaver-test-passwd-segv-tty.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/xscreensaver/xscreensaver-test-passwd-segv-tty.patch
diff -u /dev/null packages/xscreensaver/xscreensaver-test-passwd-segv-tty.patch:1.1
--- /dev/null	Fri May  6 12:42:55 2011
+++ packages/xscreensaver/xscreensaver-test-passwd-segv-tty.patch	Fri May  6 12:42:50 2011
@@ -0,0 +1,11 @@
+--- xscreensaver-5.12/driver/passwd.c.debug2	2008-12-27 19:17:26.000000000 +0900
++++ xscreensaver-5.12/driver/passwd.c	2011-04-03 21:55:26.000000000 +0900
+@@ -205,7 +205,7 @@
+ {
+ # ifdef HAVE_SYSLOG
+   struct passwd *pw = getpwuid (getuid ());
+-  char *d = DisplayString (si->dpy);
++  char *d = (si->dpy ? DisplayString (si->dpy) : 0);
+   char *u = (pw && pw->pw_name ? pw->pw_name : "???");
+   int opt = 0;
+   int fac = 0;
================================================================


More information about the pld-cvs-commit mailing list