]> git.eshelyaron.com Git - emacs.git/commitdiff
(current_lock_owner): Allow for @ sign in username.
authorJason Rumney <jasonr@gnu.org>
Mon, 23 Jul 2007 22:35:46 +0000 (22:35 +0000)
committerJason Rumney <jasonr@gnu.org>
Mon, 23 Jul 2007 22:35:46 +0000 (22:35 +0000)
src/ChangeLog
src/filelock.c

index 008234b559a1ea2d8f1fb6ef7ffe782eb60cbcbe..f3829dcfd559ba34f8d99ebe346065f6cb66d243 100644 (file)
@@ -1,3 +1,7 @@
+2007-07-23  Jason Rumney  <jasonr@gnu.org>
+
+       * filelock.c (current_lock_owner): Allow for @ sign in username.
+
 2007-07-20  Eli Zaretskii  <eliz@gnu.org>
 
        * makefile.w32-in (clean): Don't delete *~.
index 689a80a4209cab29e1df1377b6c0f86985e1a460..d654964e0fa32e1f1508988d9ade14f83e423b2b 100644 (file)
@@ -468,8 +468,8 @@ current_lock_owner (owner, lfname)
     }
 
   /* Parse USER@HOST.PID:BOOT_TIME.  If can't parse, return -1.  */
-  /* The USER is everything before the first @.  */
-  at = index (lfinfo, '@');
+  /* The USER is everything before the last @.  */
+  at = rindex (lfinfo, '@');
   dot = rindex (lfinfo, '.');
   if (!at || !dot)
     {