]> git.eshelyaron.com Git - emacs.git/commitdiff
Shell-quote the directory when finding a project's files
authorJim Porter <jporterbugs@gmail.com>
Wed, 5 May 2021 23:05:25 +0000 (16:05 -0700)
committerDmitry Gutov <dgutov@yandex.ru>
Thu, 6 May 2021 17:44:50 +0000 (20:44 +0300)
* lisp/progmodes/project.el (project--files-in-directory):
Shell-quote the directory (bug48247).

lisp/progmodes/project.el

index 24feeaf1298e7205e238fb0628496d899533bfe3..047f55ed1ae2d89387d0a34a2500669df6dfeada 100644 (file)
@@ -299,8 +299,9 @@ to find the list of ignores for each directory."
          (localdir (file-name-unquote (file-local-name (expand-file-name dir))))
          (command (format "%s %s %s -type f %s -print0"
                           find-program
-                          ;; In case DIR is a symlink.
-                          (file-name-as-directory localdir)
+                          (shell-quote-argument
+                           ;; In case DIR is a symlink.
+                           (file-name-as-directory localdir))
                           (xref--find-ignores-arguments ignores localdir)
                           (if files
                               (concat (shell-quote-argument "(")