diff options
author | Miles Bader <miles@gnu.org> | 2007-07-27 10:52:18 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 2007-07-27 10:52:18 +0000 |
commit | e468b87f91f26e66a8cde087c1a9c89c67b96d12 (patch) | |
tree | 7cf1ded30152bb0ddd4bbff544693a05b3b62911 /src/filelock.c | |
parent | b692c96bfa9b8bedd6e093a6c571624442db2e2a (diff) | |
parent | 05bfa8f34f3eedec3ad2fdb45971476a8c8f49b1 (diff) | |
download | emacs-e468b87f91f26e66a8cde087c1a9c89c67b96d12.tar.gz emacs-e468b87f91f26e66a8cde087c1a9c89c67b96d12.tar.bz2 emacs-e468b87f91f26e66a8cde087c1a9c89c67b96d12.zip |
Merge from emacs--devo--0
Patches applied:
* emacs--devo--0 (patch 824-831)
- Update from CVS
- Merge from emacs--rel--22
* emacs--rel--22 (patch 70-74)
- Update from CVS
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-238
Diffstat (limited to 'src/filelock.c')
-rw-r--r-- | src/filelock.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/filelock.c b/src/filelock.c index de6de7bb8eb..b479a802866 100644 --- a/src/filelock.c +++ b/src/filelock.c @@ -6,7 +6,7 @@ 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, @@ -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) { |