From edeb4b61132fee58d453875e65cb2f2af584df6b Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 15 Feb 2012 11:14:01 +0000 Subject: [PATCH] bug fix for --os-shell on Windows (echo ... > requires double quotes if the piped filename contains whitespace, otherwise doesn't hurt) --- lib/takeover/xp_cmdshell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/takeover/xp_cmdshell.py b/lib/takeover/xp_cmdshell.py index f4d2e2ebd..7e36faf0a 100644 --- a/lib/takeover/xp_cmdshell.py +++ b/lib/takeover/xp_cmdshell.py @@ -114,7 +114,7 @@ class xp_cmdshell: self.getRemoteTempPath() tmpFile = "%s/tmpc%s.txt" % (conf.tmpPath, randomStr(lowercase=True)) - cmd = "%s > %s" % (cmd, tmpFile) + cmd = "%s > \"%s\"" % (cmd, tmpFile) self.xpCmdshellExecCmd(cmd)