* riece-log.el (riece-log-insinuate): Use user-uid instead of
authorueno <ueno>
Sat, 5 Mar 2005 02:23:31 +0000 (02:23 +0000)
committerueno <ueno>
Sat, 5 Mar 2005 02:23:31 +0000 (02:23 +0000)
user-login-name and escape system-name for riece-log-lock-file.

lisp/ChangeLog
lisp/riece-log.el

index 834dfc0..d8e4134 100644 (file)
@@ -1,3 +1,8 @@
+2005-03-05  Daiki Ueno  <ueno@unixuser.org>
+
+       * riece-log.el (riece-log-insinuate): Use user-uid instead of
+       user-login-name and escape system-name for riece-log-lock-file.
+
 2005-03-02  Daiki Ueno  <ueno@unixuser.org>
 
        * riece-log.el (riece-log-lock-file): Define with defvar.
index 263bcd5..cca7233 100644 (file)
@@ -255,9 +255,9 @@ If LINES is t, insert today's logs entirely."
 (defun riece-log-insinuate ()
   (make-directory riece-log-directory t)
   (setq riece-log-lock-file
-       (expand-file-name (format "=lock.%s@%s.%d"
-                                 (user-login-name)
-                                 (system-name)
+       (expand-file-name (format "=%d-%d-%d"
+                                 (user-uid)
+                                 (riece-log-encode-file-name (system-name))
                                  (emacs-pid))
                          riece-log-directory))
   ;; FIXME: Use `riece-after-insert-functions' for trapping change,