]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix lock-file format in Tramp
authorMichael Albinus <michael.albinus@gmx.de>
Sun, 5 May 2024 17:54:07 +0000 (19:54 +0200)
committerEshel Yaron <me@eshelyaron.com>
Mon, 6 May 2024 16:55:51 +0000 (18:55 +0200)
* lisp/net/tramp.el (tramp-lock-file-info-regexp): BOOT_TIME can
be negative.  (Bug#70415)

(cherry picked from commit 6f16ef1c04c1ab3524eab6bb98376afc50a6078b)

lisp/net/tramp.el

index 988c9396f608f5423cad6f5550402caf2f16df71..534839a0064b6003f49d32ed7d92371fe6fa436c 100644 (file)
@@ -4537,7 +4537,7 @@ Do not set it manually, it is used buffer-local in `tramp-get-lock-pid'.")
   (rx bos (group (+ nonl))
       "@" (group (+ nonl))
       "." (group (+ digit))
-      (? ":" (+ digit)) eos)
+      (? ":" (? "-") (+ digit)) eos)
   "The format of a lock file.")
 
 (defun tramp-handle-file-locked-p (file)