Commit 50624218 authored by Jason Rumney's avatar Jason Rumney

(current_lock_owner): Allow for @ sign in username.

parent ae59e888
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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment