Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
50624218
Commit
50624218
authored
Jul 23, 2007
by
Jason Rumney
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(current_lock_owner): Allow for @ sign in username.
parent
ae59e888
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
src/ChangeLog
src/ChangeLog
+4
-0
src/filelock.c
src/filelock.c
+2
-2
No files found.
src/ChangeLog
View file @
50624218
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 *~.
...
...
src/filelock.c
View file @
50624218
...
...
@@ -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
fir
st @. */
at
=
index
(
lfinfo
,
'@'
);
/* The USER is everything before the
la
st @. */
at
=
r
index
(
lfinfo
,
'@'
);
dot
=
rindex
(
lfinfo
,
'.'
);
if
(
!
at
||
!
dot
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment