emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 35f75b63b5: * lisp/net/ange-ftp.el (ange-ftp-ls): Make a loop whe


From: Michael Albinus
Subject: master 35f75b63b5: * lisp/net/ange-ftp.el (ange-ftp-ls): Make a loop when sanitizing LSARGS.
Date: Sun, 13 Mar 2022 11:50:27 -0400 (EDT)

branch: master
commit 35f75b63b51660190b48020c048701ae8553ea1f
Author: Michael Albinus <michael.albinus@gmx.de>
Commit: Michael Albinus <michael.albinus@gmx.de>

    * lisp/net/ange-ftp.el (ange-ftp-ls): Make a loop when sanitizing LSARGS.
---
 lisp/net/ange-ftp.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/net/ange-ftp.el b/lisp/net/ange-ftp.el
index ef8527fada..9937c022d9 100644
--- a/lisp/net/ange-ftp.el
+++ b/lisp/net/ange-ftp.el
@@ -2554,7 +2554,7 @@ can parse the output from a DIR listing for a host of 
type TYPE.")
 FILE is the full name of the remote file, LSARGS is any args to pass to the
 `ls' command, and PARSE specifies that the output should be parsed and stored
 away in the internal cache."
-  (when (string-match "--" lsargs)
+  (while (string-match "--" lsargs)
     (require 'ls-lisp)
     (setq lsargs (ls-lisp--sanitize-switches lsargs)))
   ;; If parse is t, we assume that file is a directory. i.e. we only parse



reply via email to

[Prev in Thread] Current Thread [Next in Thread]