diff options
Diffstat (limited to 'x11-misc/xscreensaver/files/xscreensaver-5.20-test-passwd-segv-tty.patch')
-rw-r--r-- | x11-misc/xscreensaver/files/xscreensaver-5.20-test-passwd-segv-tty.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/x11-misc/xscreensaver/files/xscreensaver-5.20-test-passwd-segv-tty.patch b/x11-misc/xscreensaver/files/xscreensaver-5.20-test-passwd-segv-tty.patch new file mode 100644 index 000000000000..ab5deebc424a --- /dev/null +++ b/x11-misc/xscreensaver/files/xscreensaver-5.20-test-passwd-segv-tty.patch @@ -0,0 +1,13 @@ +http://pkgs.fedoraproject.org/cgit/xscreensaver.git/tree/xscreensaver-5.12-test-passwd-segv-tty.patch + +--- driver/passwd.c ++++ driver/passwd.c +@@ -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; |