summaryrefslogtreecommitdiff
path: root/fixincludes
diff options
context:
space:
mode:
authorsandra <sandra@138bc75d-0d04-0410-961f-82ee72b054a4>2009-03-27 21:56:01 +0000
committersandra <sandra@138bc75d-0d04-0410-961f-82ee72b054a4>2009-03-27 21:56:01 +0000
commit64b64bb5e8659b48978325366db92d70d4d3c54d (patch)
tree50e7af20e5db8402c2c11b4e1adf51420e1ba5f6 /fixincludes
parent656ec8104a52be9c404490a2c762171501cb92ec (diff)
downloadgcc-64b64bb5e8659b48978325366db92d70d4d3c54d.tar.gz
2009-03-27 Sandra Loosemore <sandra@codesourcery.com>
fixincludes/ * server.c (run_shell): Quote directory name passed to cd. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@145131 138bc75d-0d04-0410-961f-82ee72b054a4
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 cef28bd7d3f..0db98af7ded 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 6db8cf7e101..1e50efc9faa 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);