From mboxrd@z Thu Jan 1 00:00:00 1970 From: gregory@dynapse.com (Gregory J. Grubbs) Subject: [PATCH] Quote path argument in org-latex Date: Sat, 17 Jul 2010 22:08:08 -0600 Message-ID: <874ofxa0uv.fsf@dynapse.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=45816 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OaLAt-0007A5-Iw for emacs-orgmode@gnu.org; Sun, 18 Jul 2010 00:08:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OaLAs-0007Bf-Hh for emacs-orgmode@gnu.org; Sun, 18 Jul 2010 00:08:23 -0400 Received: from lo.gmane.org ([80.91.229.12]:52923) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OaLAs-0007Ba-B8 for emacs-orgmode@gnu.org; Sun, 18 Jul 2010 00:08:22 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OaLAn-0000Lk-C1 for emacs-orgmode@gnu.org; Sun, 18 Jul 2010 06:08:17 +0200 Received: from 72.42.83.66 ([72.42.83.66]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 18 Jul 2010 06:08:17 +0200 Received: from gregory by 72.42.83.66 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 18 Jul 2010 06:08:17 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Patch quotes paths to protect from interpretation by the shell diff --git a/lisp/org-latex.el b/lisp/org-latex.el index b6a7769..156dbcf 100644 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -836,7 +836,7 @@ when PUB-DIR is set, use this as the publishing directory." (with-current-buffer outbuf (erase-buffer)) (message "Processing LaTeX file...") (if (and cmds (symbolp cmds)) - (funcall cmds file) + (funcall cmds (shell-quote-argument file)) (while cmds (setq cmd (pop cmds)) (while (string-match "%b" cmd)