1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-17 17:58:46 +00:00

(current_lock_owner): Allow for @ sign in username.

This commit is contained in:
Jason Rumney 2007-07-23 22:35:46 +00:00
parent ae59e88846
commit 5062421853
2 changed files with 6 additions and 2 deletions

View 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 *~.

View 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)
{