[gnome-keyring] Don't reject empty passwords for --unlock



commit c5da2060b1b6f7649463dacdfcb55dd6bee803af
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Feb 15 12:20:13 2016 -0500

    Don't reject empty passwords for --unlock
    
    gnome-initial-setup is creating a keyring by calling
    gnome-keyring-daemon --unlock. Since we don't have a password
    at that time yet, it passes "" as the password. Just accept
    this and create an unencrypted keyring.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=762095

 daemon/login/gkd-login.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/daemon/login/gkd-login.c b/daemon/login/gkd-login.c
index a79828b..a189c5e 100644
--- a/daemon/login/gkd-login.c
+++ b/daemon/login/gkd-login.c
@@ -273,8 +273,8 @@ gkd_login_unlock (const gchar *master)
        GList *modules;
        gboolean result;
 
-       /* We don't support null or empty master passwords */
-       if (!master || !master[0])
+       /* We don't support null as master password */
+       if (!master)
                return FALSE;
 
        modules = module_instances ();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]