[gnome-commander] Reverting commit 06e3594b
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Reverting commit 06e3594b
- Date: Wed, 13 May 2015 20:11:34 +0000 (UTC)
commit 917ce9542c9b43fc0a0b6799da167d9d53715576
Author: Uwe Scholz <uwescholz src gnome org>
Date: Wed May 13 22:06:59 2015 +0200
Reverting commit 06e3594b
src/gnome-cmd-con-remote.cc | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gnome-cmd-con-remote.cc b/src/gnome-cmd-con-remote.cc
index 6ea88e6..3d7e08c 100644
--- a/src/gnome-cmd-con-remote.cc
+++ b/src/gnome-cmd-con-remote.cc
@@ -256,6 +256,7 @@ GnomeCmdConRemote *gnome_cmd_con_remote_new (const gchar *alias, const string &u
g_return_val_if_fail (server != NULL, NULL);
const gchar *host = gnome_vfs_uri_get_host_name (uri); // do not g_free
+ const gchar *password = gnome_vfs_uri_get_password (uri); // do not g_free
gchar *path = gnome_vfs_unescape_string (gnome_vfs_uri_get_path (uri), NULL);
GnomeCmdCon *con = GNOME_CMD_CON (server);
@@ -268,7 +269,7 @@ GnomeCmdConRemote *gnome_cmd_con_remote_new (const gchar *alias, const string &u
gnome_cmd_con_remote_set_host_name (server, host);
con->method = gnome_cmd_con_get_scheme (uri);
- con->auth = con->method==CON_ANON_FTP ? GnomeCmdCon::NOT_REQUIRED : GnomeCmdCon::SAVE_FOR_SESSION;
+ con->auth = con->method==CON_ANON_FTP ? GnomeCmdCon::NOT_REQUIRED : password ?
GnomeCmdCon::SAVE_FOR_SESSION : GnomeCmdCon::SAVE_PERMANENTLY;
g_free (path);
gnome_vfs_uri_unref (uri);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]