From 82137b51352e31dde72cb20385b676de44742429 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Mon, 28 Feb 2011 19:43:14 -0800 Subject: [PATCH] * lisp/files.el: Comment. --- lisp/files.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lisp/files.el b/lisp/files.el index bafae814756..add38df5c4f 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -5848,6 +5848,9 @@ normally equivalent short `-D' option is just passed on to (file-name-directory file) (file-name-directory (expand-file-name file)))) (pattern (file-name-nondirectory file))) + ;; NB since switches is passed to the shell, be + ;; careful of malicious values, eg "-l;reboot". + ;; See eg dired-safe-switches-p. (call-process shell-file-name nil t nil "-c" -- 2.39.5