hard code freeze break request



I've just fixed a silly bug in the sftp gvfs backend. When it asks for
the passphrase for a ssh key it also asks for the username. The fix is
easy:

--- daemon/gvfsbackendsftp.c    (revision 2306)
+++ daemon/gvfsbackendsftp.c    (working copy)
@@ -851,13 +851,14 @@ handle_login (GVfsBackend *backend,
               
               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;


Permission to commit this?




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