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:
parent
ae59e88846
commit
5062421853
@ -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 *~.
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user