]> git.lyx.org Git - features.git/commitdiff
Protect against autorun commands on Windows (see also bug #7718).
authorEnrico Forestieri <forenr@lyx.org>
Sun, 28 Aug 2011 16:53:38 +0000 (16:53 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Sun, 28 Aug 2011 16:53:38 +0000 (16:53 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39550 a592a061-630c-0410-9148-cb99ea01b6c8

src/support/filetools.cpp

index dc01fcda8662ea06db4f2afb506db32355f9b4fe..7f701407748113ec65d9a3b5075a5bfe3dd45222 100644 (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);