From 03f0813fc1bbd0aa72d79181db65dc50e5d56e8b Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 21 Dec 2001 23:58:23 +0000 Subject: [PATCH] (ange-ftp-file-modtime): Use save-match-data. --- 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 68886e80cb1..a6e09464a2f 100644 --- a/lisp/net/ange-ftp.el +++ b/lisp/net/ange-ftp.el @@ -3442,7 +3442,7 @@ Value is (0 0) if the modification time cannot be determined." ;; Bob@rattlesnake.com reports that is returns something different ;; for at least one FTP server. So, let's use the response only ;; if it matches the Internet draft. - (when (string-match "^213 [0-9]\\{14\\}$" line) + (when (save-match-data (string-match "^213 [0-9]\\{14\\}$" line)) (setq modtime (encode-time (string-to-number (substring line 16 18)) -- 2.39.5