[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: address@hidden: Usernames with @ signs break "file being modified by
From: |
Jason Rumney |
Subject: |
Re: address@hidden: Usernames with @ signs break "file being modified by another user" lock symlinks] |
Date: |
Mon, 23 Jul 2007 15:10:37 +0100 |
User-agent: |
Thunderbird 2.0.0.5 (Windows/20070716) |
Richard Stallman wrote:
> [I sent this message twice but did not get a response.
> Could we get the discussion moving again?]
>
> I think this problem still happens in Emacs 22.
> I think the fix is to establish a quoting convention
> for strange characters in the user name. Perhaps quoted printable
> encoding.
>
The problem seems to come not from the fact that @ is a special
character, but from the following code, which assumes that @ does not
appear in the username. Since @ cannot appear in hostnames, nor in
timestamps or pids AFAIK, we can probably fix this by changing index to
rindex in the third line below. I don't think any system allows
characters in the username that are not valid in the filename, so this
should be sufficient.
/* Parse address@hidden:BOOT_TIME. If can't parse, return -1. */
/* The USER is everything before the first @. */
at = index (lfinfo, '@');
dot = rindex (lfinfo, '.');