aboutsummaryrefslogtreecommitdiff
path: root/fixincludes
diff options
context:
space:
mode:
authorSandra Loosemore <sandra@codesourcery.com>2009-03-27 17:56:01 -0400
committerSandra Loosemore <sandra@gcc.gnu.org>2009-03-27 17:56:01 -0400
commitea7557f04b00f388a1042e1c6e38ea0da17a1b93 (patch)
tree50e7af20e5db8402c2c11b4e1adf51420e1ba5f6 /fixincludes
parent7338ea632be2de59230b17140f5fbe98476ed2e5 (diff)
downloadgcc-ea7557f04b00f388a1042e1c6e38ea0da17a1b93.zip
gcc-ea7557f04b00f388a1042e1c6e38ea0da17a1b93.tar.gz
gcc-ea7557f04b00f388a1042e1c6e38ea0da17a1b93.tar.bz2
server.c (run_shell): Quote directory name passed to cd.
2009-03-27 Sandra Loosemore <sandra@codesourcery.com> fixincludes/ * server.c (run_shell): Quote directory name passed to cd. From-SVN: r145131
Diffstat (limited to 'fixincludes')
-rw-r--r--fixincludes/ChangeLog4
-rw-r--r--fixincludes/server.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/fixincludes/ChangeLog b/fixincludes/ChangeLog
index cef28bd..0db98af 100644
--- a/fixincludes/ChangeLog
+++ b/fixincludes/ChangeLog
@@ -1,3 +1,7 @@
+2009-03-27 Sandra Loosemore <sandra@codesourcery.com>
+
+ * server.c (run_shell): Quote directory name passed to cd.
+
2009-03-01 Bruce Korb <bkorb@gnu.org>
Apply a positively ancient patch:
diff --git a/fixincludes/server.c b/fixincludes/server.c
index 6db8cf7..1e50efc 100644
--- a/fixincludes/server.c
+++ b/fixincludes/server.c
@@ -266,7 +266,7 @@ run_shell (const char* pz_cmd)
/* Make sure the process will pay attention to us, send the
supplied command, and then have it output a special marker that
we can find. */
- fprintf (server_pair.pf_write, "cd %s\n%s\n\necho\necho %s\n",
+ fprintf (server_pair.pf_write, "cd \"%s\"\n%s\n\necho\necho %s\n",
p_cur_dir, pz_cmd, z_done);
fflush (server_pair.pf_write);