/* Lock files for editing.
- Copyright (C) 1985, 86, 87, 93, 94, 96, 98, 1999, 2000, 2001
- Free Software Foundation, Inc.
+ Copyright (C) 1985, 1986, 1987, 1993, 1994, 1996, 1998, 1999, 2000, 2001,
+ 2002, 2003, 2004, 2005, 2006, 2007, 2008
+ Free Software Foundation, Inc.
This file is part of GNU Emacs.
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,
}
/* 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)
{