From: Enrico Forestieri Date: Sun, 28 Aug 2011 16:53:38 +0000 (+0000) Subject: Protect against autorun commands on Windows (see also bug #7718). X-Git-Tag: 2.1.0beta1~2772 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=6eabcc2dd3df93dd2427d6b32360bacff6e0aa7a;p=features.git 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 --- 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);