[gnome-terminal/gnome-3-20] nautilus: Fix handing sftp folders with % character



commit 73204c0586a18e22eb7d8c188ae4ba89814ffe37
Author: Egmont Koblinger <egmont gmail com>
Date:   Mon May 2 22:48:52 2016 +0200

    nautilus: Fix handing sftp folders with % character
    
    https://bugzilla.gnome.org/show_bug.cgi?id=765828
    (cherry picked from commit 62e90aa7314347a39f3cfac11f876f5047633a8d)

 src/terminal-nautilus.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/terminal-nautilus.c b/src/terminal-nautilus.c
index 6c5fc63..94b410f 100644
--- a/src/terminal-nautilus.c
+++ b/src/terminal-nautilus.c
@@ -233,7 +233,7 @@ ssh_argv (const char *uri,
   GFile *file;
   char **argv;
   int argc;
-  char *host_name, *path, *user_name, *unescaped_path, *quoted_path;
+  char *host_name, *path, *user_name, *quoted_path;
   guint host_port;
 
   g_assert (uri != NULL);
@@ -261,8 +261,7 @@ ssh_argv (const char *uri,
   }
 
   /* FIXME to we have to consider the remote file encoding? */
-  unescaped_path = g_uri_unescape_string (path, NULL);
-  quoted_path = g_shell_quote (unescaped_path);
+  quoted_path = g_shell_quote (path);
 
   if (run_in_mc) {
     argv[argc++] = g_strdup_printf ("cd %s && exec %s", quoted_path, "mc");
@@ -272,7 +271,6 @@ ssh_argv (const char *uri,
   }
 
   g_free (path);
-  g_free (unescaped_path);
   g_free (quoted_path);
 
   *argcp = argc;


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