Commit ea7557f0 by Sandra Loosemore Committed by Sandra Loosemore

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
parent 7338ea63
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> 2009-03-01 Bruce Korb <bkorb@gnu.org>
Apply a positively ancient patch: Apply a positively ancient patch:
......
...@@ -266,7 +266,7 @@ run_shell (const char* pz_cmd) ...@@ -266,7 +266,7 @@ run_shell (const char* pz_cmd)
/* Make sure the process will pay attention to us, send the /* Make sure the process will pay attention to us, send the
supplied command, and then have it output a special marker that supplied command, and then have it output a special marker that
we can find. */ 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); p_cur_dir, pz_cmd, z_done);
fflush (server_pair.pf_write); fflush (server_pair.pf_write);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment