From 2323d858a98397966e79e73442306c8879379585 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 13 May 2010 09:32:27 +0000 Subject: [PATCH] modification of temporary directory from C:/Windows/Temp to %TEMP% --- plugins/dbms/mssqlserver/filesystem.py | 2 +- plugins/generic/filesystem.py | 2 +- plugins/generic/misc.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/dbms/mssqlserver/filesystem.py b/plugins/dbms/mssqlserver/filesystem.py index 9aba348c5..77828daaf 100644 --- a/plugins/dbms/mssqlserver/filesystem.py +++ b/plugins/dbms/mssqlserver/filesystem.py @@ -160,7 +160,7 @@ class Filesystem(GenericFilesystem): logger.debug("moving binary file %s to %s" % (sFile, dFile)) - commands = ("cd %s" % tmpPath, + commands = ("cd \"%s\"" % tmpPath, "ren %s %s" % (chunkName, dFileName), "move /Y %s %s" % (dFileName, dFile)) complComm = " & ".join(command for command in commands) diff --git a/plugins/generic/filesystem.py b/plugins/generic/filesystem.py index dd8a164d1..654919473 100644 --- a/plugins/generic/filesystem.py +++ b/plugins/generic/filesystem.py @@ -211,7 +211,7 @@ class Filesystem: for scrLine in fileScrLines: forgedScrLine = "echo %s " % scrLine - forgedScrLine += ">> %s\%s" % (tmpPath, randScr) + forgedScrLine += ">> \"%s\%s\"" % (tmpPath, randScr) forgedScrLines.append(forgedScrLine) for forgedScrLine in forgedScrLines: diff --git a/plugins/generic/misc.py b/plugins/generic/misc.py index 4972ab43e..fce8aa44d 100644 --- a/plugins/generic/misc.py +++ b/plugins/generic/misc.py @@ -65,7 +65,7 @@ class Miscellaneous: #logger.info(infoMsg) # #conf.tmpPath = self.evalCmd("echo %TEMP%") - conf.tmpPath = "C:/WINDOWS/Temp" + conf.tmpPath = "%TEMP%" else: conf.tmpPath = "/tmp"