Fix lock-file format in Tramp
authorMichael Albinus <michael.albinus@gmx.de>
Sun, 5 May 2024 17:54:07 +0000 (19:54 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Sun, 5 May 2024 17:54:07 +0000 (19:54 +0200)
* lisp/net/tramp.el (tramp-lock-file-info-regexp): BOOT_TIME can
be negative.  (Bug#70415)

lisp/net/tramp.el

index 34a636ab97d94f80639c3277a6528edefab2e171..4c62d1d9f390d4e3abb3f9835d838cefa6c5eaac 100644 (file)
@@ -4545,7 +4545,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)