evolution-data-server r9640 - trunk/libedataserverui
- From: sragavan svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution-data-server r9640 - trunk/libedataserverui
- Date: Mon, 6 Oct 2008 10:26:56 +0000 (UTC)
Author: sragavan
Date: Mon Oct 6 10:26:56 2008
New Revision: 9640
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=9640&view=rev
Log:
2008-10-06 Srinivasa Ragavan <sragavan novell com>
** Fix for bug #546406
* libedataserverui/e-passwords.c: Don't lookup password from old
keyring.
Modified:
trunk/libedataserverui/ChangeLog
trunk/libedataserverui/e-passwords.c
Modified: trunk/libedataserverui/e-passwords.c
==============================================================================
--- trunk/libedataserverui/e-passwords.c (original)
+++ trunk/libedataserverui/e-passwords.c Mon Oct 6 10:26:56 2008
@@ -882,6 +882,11 @@
while (iter != NULL) {
GnomeKeyringFound *found = iter->data;
+ if (default_keyring && strcmp(default_keyring, found->keyring) != 0) {
+ g_message ("Received a password from keyring '%s'. But looking for the password from '%s' keyring\n", found->keyring, default_keyring);
+ iter = g_list_next (iter);
+ continue;
+ }
if (ep_keyring_validate (uri->user, uri->host, NULL, found->attributes)) {
msg->password = g_strdup (found->secret);
break;
@@ -1228,10 +1233,7 @@
GTK_TABLE (container), widget,
1, 2, 3, 4, GTK_EXPAND | GTK_FILL, GTK_FILL, 0, 0);
}
-#ifdef WITH_GNOME_KEYRING
- if (gnome_keyring_is_available ())
- gnome_keyring_get_default_keyring_sync (&default_keyring);
-#endif
+
msg->noreply = noreply;
@@ -1268,6 +1270,10 @@
ep_key_file_load ();
}
+#ifdef WITH_GNOME_KEYRING
+ if (gnome_keyring_is_available ())
+ gnome_keyring_get_default_keyring_sync (&default_keyring);
+#endif
G_UNLOCK (passwords);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]