fixed #412: unpack using password file doesn't work on Windows

Also added more debug output for future use.
This commit is contained in:
Andrey Prygunkov
2017-07-12 20:48:59 +02:00
parent 67195e7683
commit cdc5c5515f
2 changed files with 12 additions and 3 deletions

View File

@@ -473,6 +473,8 @@ void ScriptController::StartProcess(int* pipein, int* pipeout)
cmdLine = cmdLineBuf;
}
debug("Starting process: %s", cmdLine);
WString wideWorkingDir = FileSystem::UtfPathToWidePath(workingDir);
if (strlen(workingDir) > 260 - 14)
{
@@ -582,6 +584,12 @@ void ScriptController::StartProcess(int* pipein, int* pipeout)
args.emplace_back(nullptr);
char* const* argdata = (char* const*)args.data();
debug("Starting process: %s", script);
for (const char* arg : m_args)
{
debug("arg: %s", arg);
}
debug("forking");
pid_t pid = fork();