changeset 73366:d0dd803ef151

(filesets-cmd-shell-command): Quote buffer-file-name to protect whitespace and metacharacters from the shell.
author Eli Zaretskii <eliz@gnu.org>
date Sat, 14 Oct 2006 14:09:22 +0000
parents b6b9827aea03
children ca13aaf278ba
files lisp/filesets.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/filesets.el	Sat Oct 14 13:03:17 2006 +0000
+++ b/lisp/filesets.el	Sat Oct 14 14:09:22 2006 +0000
@@ -1701,7 +1701,7 @@
 		  ok)
 	      t)))
     (when ok
-      (let ((cmd (format txt (buffer-file-name))))
+      (let ((cmd (format txt (shell-quote-argument (buffer-file-name)))))
 	(message "Filesets: %s" cmd)
 	(filesets-cmd-show-result cmd
 				  (shell-command-to-string cmd))))))