mirror of
https://github.com/nzbget/nzbget.git
synced 2026-03-09 01:15:54 -04:00
fixed #412: unpack using password file doesn't work on Windows
Also added more debug output for future use.
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user