summaryrefslogtreecommitdiff
path: root/daemon/gvfsbackendsftp.c
diff options
context:
space:
mode:
authorRoss Lagerwall <rosslagerwall@gmail.com>2014-10-21 23:18:05 +0100
committerRoss Lagerwall <rosslagerwall@gmail.com>2014-10-23 21:43:54 +0100
commit9362d9c27354ffdcd8b8100dee3994296e48be38 (patch)
treebbfde87e31a8eb2561377c06d027d7cd4a3ffc47 /daemon/gvfsbackendsftp.c
parent79ab9cded8c2f574875a596527f6e2e40afa93c5 (diff)
downloadgvfs-9362d9c27354ffdcd8b8100dee3994296e48be38.tar.gz
sftp: Retrieve the username from the secret store
Retrieve the username from the secret store rather than simply using the default username with the retrieved password. Without this, the backend does not correctly recall the login details of a non-default user when the username is not specified in the URI. E.g. if my username is "ross" and I stored the login details for "john", logging in with a URI of sftp://host/path should use john's details rather than john's password with ross as a username. If the username is specified directly, e.g. sftp://john@host/path, this already did work correctly (and should continue to). https://bugzilla.gnome.org/show_bug.cgi?id=736311
Diffstat (limited to 'daemon/gvfsbackendsftp.c')
-rw-r--r--daemon/gvfsbackendsftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/gvfsbackendsftp.c b/daemon/gvfsbackendsftp.c
index 75725e1c..0fc5809b 100644
--- a/daemon/gvfsbackendsftp.c
+++ b/daemon/gvfsbackendsftp.c
@@ -951,7 +951,7 @@ handle_login (GVfsBackend *backend,
op_backend->port
:
0,
- NULL,
+ &new_user,
NULL,
&new_password)))
{