SF.net SVN: geany: [1198] trunk
eht16 at users.sourceforge.net
eht16 at xxxxx
Tue Jan 16 15:57:00 UTC 2007
Revision: 1198
http://svn.sourceforge.net/geany/?rev=1198&view=rev
Author: eht16
Date: 2007-01-16 07:57:00 -0800 (Tue, 16 Jan 2007)
Log Message:
-----------
Use g_shell_quote to avoid problems with special characters in the path of a filename.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/vte.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2007-01-16 15:24:01 UTC (rev 1197)
+++ trunk/ChangeLog 2007-01-16 15:57:00 UTC (rev 1198)
@@ -1,3 +1,9 @@
+2007-01-16 Enrico Tröger <enrico.troeger at uvena.de>
+
+ * src/vte.c: Use g_shell_quote to avoid problems with special
+ characters in the path of a filename.
+
+
2007-01-16 Nick Treleaven <nick.treleaven at btinternet.com>
* tagmanager/c.c:
Modified: trunk/src/vte.c
===================================================================
--- trunk/src/vte.c 2007-01-16 15:24:01 UTC (rev 1197)
+++ trunk/src/vte.c 2007-01-16 15:57:00 UTC (rev 1198)
@@ -441,8 +441,11 @@
vte_get_working_directory(); // refresh vte_info.dir
if (! utils_str_equal(path, vte_info.dir))
{
- gchar *cmd = g_strconcat("cd \"", path, "\"\n", NULL);
+ // use g_shell_quote to avoid problems with spaces, '!' or something else in path
+ gchar *quoted_path = g_shell_quote(path);
+ gchar *cmd = g_strconcat("cd ", quoted_path, "\n", NULL);
vte_send_cmd(cmd);
+ g_free(quoted_path);
g_free(cmd);
}
g_free(path);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list