# HG changeset patch # User Miles Bader # Date 1185427130 0 # Node ID 4b32c8c81cd4d2d3d5d32d8a4ff6bd7dc0252470 # Parent cb9f54321c748e0f77ed92ec50277391e744dc55# Parent 9510a7231ed7040aa81b5a898e2c474c51086959 Merge from emacs--rel--22 Patches applied: * emacs--rel--22 (patch 70-73) - Update from CVS 2007-07-25 Glenn Morris * Relicense all FSF files to GPLv3 or later. 2007-07-23 Jason Rumney * src/filelock.c (current_lock_owner): Allow for @ sign in username. Revision: emacs@sv.gnu.org/emacs--devo--0--patch-828 diff -r cb9f54321c74 -r 4b32c8c81cd4 src/filelock.c --- a/src/filelock.c Thu Jul 26 05:18:03 2007 +0000 +++ b/src/filelock.c Thu Jul 26 05:18:50 2007 +0000 @@ -6,7 +6,7 @@ GNU Emacs is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2, or (at your option) +the Free Software Foundation; either version 3, or (at your option) any later version. GNU Emacs is distributed in the hope that it will be useful, @@ -468,8 +468,8 @@ } /* 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) {