components/desktop/xscreensaver/patches/21-verbose.patch
changeset 5561 0416d82f7f55
parent 5560 61114c4b4667
child 5562 880dc66054d5
--- a/components/desktop/xscreensaver/patches/21-verbose.patch	Mon Mar 07 13:01:10 2016 -0800
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,43 +0,0 @@
-Bug 16559 - xscreensaver shows extra messages
-https://defect.opensolaris.org/bz/show_bug.cgi?id=16559
-
-Make messages that annoy users only appear when verbose is set.
-(Upstream wasn't showing these until we started capturing stderr.)
----
- driver/passwd.c |   12 +++++++++---
- 1 files changed, 9 insertions(+), 3 deletions(-)
-
-diff --git a/driver/passwd.c b/driver/passwd.c
---- a/driver/passwd.c
-+++ b/driver/passwd.c
-@@ -283,8 +283,11 @@ xss_authenticate(saver_info *si, Bool verbose_p)
-           si->cached_passwd &&
-           !*si->cached_passwd)
-         {
--          fprintf (stderr, "%s: assuming null password means cancel.\n",
--                   blurb());
-+          if (verbose_p)
-+            {
-+              fprintf (stderr, "%s: assuming null password means cancel.\n",
-+                       blurb());
-+            }
-           si->unlock_state = ul_cancel;
-         }
- 
-@@ -313,11 +316,14 @@ xss_authenticate(saver_info *si, Bool verbose_p)
-         {
-           /* If any auth method gets a cancel or timeout, don't try the
-              next auth method!  We're done! */
--          fprintf (stderr,
-+          if (verbose_p)
-+            {
-+              fprintf (stderr,
-                    "%s: authentication via %s %s.\n",
-                        blurb(), methods[i].name,
-                    (si->unlock_state == ul_cancel
-                     ? "cancelled" : "timed out"));
-+            }
-           goto DONE;
-         }
-     }
-