]> code.delx.au - gnu-emacs/commitdiff
(filesets-cmd-shell-command): Quote buffer-file-name to protect whitespace and
authorEli Zaretskii <eliz@gnu.org>
Sat, 14 Oct 2006 14:10:25 +0000 (14:10 +0000)
committerEli Zaretskii <eliz@gnu.org>
Sat, 14 Oct 2006 14:10:25 +0000 (14:10 +0000)
metacharacters from the shell.

lisp/ChangeLog
lisp/filesets.el

index fdb8cf68e697a654f750a0a40ccb8057e5d0e328..30553067a0b9a7e07c02dca55a2147f749cb8afa 100644 (file)
@@ -1,3 +1,8 @@
+2006-10-14  Lennart Borgman  <lennart.borgman.073@student.lu.se>
+
+       * filesets.el (filesets-cmd-shell-command): Quote buffer-file-name
+       to protect whitespace and metacharacters from the shell.
+
 2006-10-13  Giorgos Keramidas  <keramida@ceid.upatras.gr>  (tiny change)
 
        * apropos.el (apropos-pattern-quoted): Fix a typo in a doc
index eb8cdb02617e2fef866ed918418abecc8ef073b1..6e6ffc3add0d11429a1dd8dc877f3c42c4ebf7cb 100644 (file)
@@ -1701,7 +1701,7 @@ Replace <file-name> or <<file-name>> with filename."
                  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))))))