Protect against autorun commands on Windows (see also bug #7718).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39550 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2011-08-28 16:53:38 +00:00
parent 6df33aba97
commit 6eabcc2dd3

View File

@ -859,7 +859,7 @@ cmd_ret const runCommand(string const & cmd)
command = rtrim(command, "2>&1");
err2out = true;
}
string const cmdarg = "/c " + command;
string const cmdarg = "/d /c " + command;
string const comspec = getEnv("COMSPEC");
security.nLength = sizeof(SECURITY_ATTRIBUTES);