gvfs r2312 - in trunk: . daemon
- From: alexl svn gnome org
- To: svn-commits-list gnome org
- Subject: gvfs r2312 - in trunk: . daemon
- Date: Tue, 10 Mar 2009 11:40:59 +0000 (UTC)
Author: alexl
Date: Tue Mar 10 11:40:59 2009
New Revision: 2312
URL: http://svn.gnome.org/viewvc/gvfs?rev=2312&view=rev
Log:
2009-03-10 Alexander Larsson <alexl redhat com>
* daemon/gvfsbackendsftp.c:
(handle_login):
Don't ask for username when getting ssh key passphrase
Modified:
trunk/ChangeLog
trunk/daemon/gvfsbackendsftp.c
Modified: trunk/daemon/gvfsbackendsftp.c
==============================================================================
--- trunk/daemon/gvfsbackendsftp.c (original)
+++ trunk/daemon/gvfsbackendsftp.c Tue Mar 10 11:40:59 2009
@@ -851,13 +851,14 @@
if (g_vfs_keyring_is_available ())
flags |= G_ASK_PASSWORD_SAVING_SUPPORTED;
- if (!op_backend->user_specified)
+ if (strcmp (authtype, "password") == 0 &&
+ !op_backend->user_specified)
flags |= G_ASK_PASSWORD_NEED_USERNAME;
g_free (new_password);
if (!g_mount_source_ask_password (mount_source,
- g_str_has_prefix (buffer, "Enter passphrase for key") ?
+ strcmp (authtype, "publickey") == 0 ?
_("Enter passphrase for key")
:
_("Enter password"),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]