From e5ed5575e7bb3b4960998163a569d8e2f03f9f4e Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Sun, 28 Aug 2011 18:44:53 +0000 Subject: [PATCH] Protect against autorun commands on Windows. No status line needed as this is an addendum to r39514. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@39552 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/support/filetools.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/support/filetools.cpp b/src/support/filetools.cpp index dc01fcda86..7f70140774 100644 --- a/src/support/filetools.cpp +++ b/src/support/filetools.cpp @@ -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); -- 2.39.5