]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix passive mode for tnftp client in ange-ftp.el.
authorChristophe Deleuze <christophe.deleuze@free.fr>
Mon, 18 Dec 2023 10:13:30 +0000 (11:13 +0100)
committerEshel Yaron <me@eshelyaron.com>
Sat, 23 Dec 2023 13:16:48 +0000 (14:16 +0100)
* lisp/net/ange-ftp.el (ange-ftp-passive-mode): Fix passive mode
result string for tnftp client.  (Bug#67865)

Copyright-paperwork-exempt: yes
(cherry picked from commit 03625c2fefa682f74775abc1e223e17557d58bc7)

lisp/net/ange-ftp.el

index 4e4db34a78db8a516aa3d30c2e19ddd2cba9fd8c..a1eb57baa2019bbc67aa812c9f07e7734d29cb57 100644 (file)
@@ -2164,7 +2164,7 @@ Create a new process if needed."
       proc)))
 
 (defun ange-ftp-passive-mode (proc on-or-off)
-  (if (string-match (concat "Passive mode " on-or-off)
+  (if (string-match (concat "Passive mode:? " on-or-off)
                     (cdr (ange-ftp-raw-send-cmd
                           proc (concat "passive " on-or-off)
                           "Trying passive mode..." nil)))