* [ojacobson@riptown.com: Usernames with @ signs break "file being modified by another user" lock symlinks]
@ 2007-07-05 1:31 Richard Stallman
0 siblings, 0 replies; 6+ messages in thread
From: Richard Stallman @ 2007-07-05 1:31 UTC (permalink / raw)
To: emacs-devel
Does this problem still happen in Emacs 22? If so,
we should try to fix it. Perhaps the solution is to make filelock.c
replace @ with some other, harmless character.
Would someone please DTRT and ack?
------- Start of forwarded message -------
X-Spam-Status: No, score=0.0 required=5.0 tests=UNPARSEABLE_RELAY
autolearn=failed version=3.1.0
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-class: urn:content-classes:message
Date: Wed, 4 Jul 2007 11:56:01 -0700
Thread-Topic: Usernames with @ signs break "file being modified by another
user" lock symlinks
Thread-Index: Ace+bPbRNXE5CCpgEdy/dwAX8giFnA==
From: "Owen Jacobson" <ojacobson@riptown.com>
To: <bug-gnu-emacs@gnu.org>
Subject: Usernames with @ signs break "file being modified by another user"
lock symlinks
This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.
Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list,
and to the gnu.emacs.bug news group.
In GNU Emacs 21.2.1 (powerpc-apple-darwin8.0)
of 2007-05-08 on s11-cp04-07.corp.kazootek.com
configured using `configure --prefix=/usr --mandir=/usr/share/man
- --infodir=/usr/share/info --disable-dependency-tracking --without-x'
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: nil
locale-coding-system: nil
default-enable-multibyte-characters: t
Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:
1. Create a username* with an @ symbol in it (eg "test@localhost") and su
to it.
2. emacs test.txt
3. Enter some text and attempt to save it.
Emacs will warn that the file is in use by another process and report
its own PID, despite being the only editor accessing the file. Examining
the output of ls -l while this prompt is displayed shows a symlink named
.#filename, linked to test@localhost@MACHINENAME.PID
I've verified this on a linux system with a normal local user named
"test@localhost" as well; this is not dependant on directory-based
usernames.
* This came up because the machine I normally use, a Mac, has been
bound into an OpenDirectory domain and my username (as seen in $USER
and friends) is ojacobson@DOMAIN.COM.
_______________________________________________
bug-gnu-emacs mailing list
bug-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnu-emacs
------- End of forwarded message -------
^ permalink raw reply [flat|nested] 6+ messages in thread
* [ojacobson@riptown.com: Usernames with @ signs break "file being modified by another user" lock symlinks]
@ 2007-07-15 16:50 Richard Stallman
0 siblings, 0 replies; 6+ messages in thread
From: Richard Stallman @ 2007-07-15 16:50 UTC (permalink / raw)
To: emacs-devel
[I sent this message a few weeks ago 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.
Would someone please DTRT and ack?
------- Start of forwarded message -------
X-Spam-Status: No, score=0.0 required=5.0 tests=UNPARSEABLE_RELAY
autolearn=failed version=3.1.0
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-class: urn:content-classes:message
Date: Wed, 4 Jul 2007 11:56:01 -0700
Thread-Topic: Usernames with @ signs break "file being modified by another
user" lock symlinks
Thread-Index: Ace+bPbRNXE5CCpgEdy/dwAX8giFnA==
From: "Owen Jacobson" <ojacobson@riptown.com>
To: <bug-gnu-emacs@gnu.org>
Subject: Usernames with @ signs break "file being modified by another user"
lock symlinks
This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.
Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list,
and to the gnu.emacs.bug news group.
In GNU Emacs 21.2.1 (powerpc-apple-darwin8.0)
of 2007-05-08 on s11-cp04-07.corp.kazootek.com
configured using `configure --prefix=/usr --mandir=/usr/share/man
- --infodir=/usr/share/info --disable-dependency-tracking --without-x'
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: nil
locale-coding-system: nil
default-enable-multibyte-characters: t
Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:
1. Create a username* with an @ symbol in it (eg "test@localhost") and su
to it.
2. emacs test.txt
3. Enter some text and attempt to save it.
Emacs will warn that the file is in use by another process and report
its own PID, despite being the only editor accessing the file. Examining
the output of ls -l while this prompt is displayed shows a symlink named
.#filename, linked to test@localhost@MACHINENAME.PID
I've verified this on a linux system with a normal local user named
"test@localhost" as well; this is not dependant on directory-based
usernames.
* This came up because the machine I normally use, a Mac, has been
bound into an OpenDirectory domain and my username (as seen in $USER
and friends) is ojacobson@DOMAIN.COM.
_______________________________________________
bug-gnu-emacs mailing list
bug-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnu-emacs
------- End of forwarded message -------
^ permalink raw reply [flat|nested] 6+ messages in thread
* [ojacobson@riptown.com: Usernames with @ signs break "file being modified by another user" lock symlinks]
@ 2007-07-23 4:28 Richard Stallman
2007-07-23 14:10 ` Jason Rumney
0 siblings, 1 reply; 6+ messages in thread
From: Richard Stallman @ 2007-07-23 4:28 UTC (permalink / raw)
To: emacs-devel
[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.
Would someone please DTRT and ack?
------- Start of forwarded message -------
X-Spam-Status: No, score=0.0 required=5.0 tests=UNPARSEABLE_RELAY
autolearn=failed version=3.1.0
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-class: urn:content-classes:message
Date: Wed, 4 Jul 2007 11:56:01 -0700
Thread-Topic: Usernames with @ signs break "file being modified by another
user" lock symlinks
Thread-Index: Ace+bPbRNXE5CCpgEdy/dwAX8giFnA==
From: "Owen Jacobson" <ojacobson@riptown.com>
To: <bug-gnu-emacs@gnu.org>
Subject: Usernames with @ signs break "file being modified by another user"
lock symlinks
This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.
Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list,
and to the gnu.emacs.bug news group.
In GNU Emacs 21.2.1 (powerpc-apple-darwin8.0)
of 2007-05-08 on s11-cp04-07.corp.kazootek.com
configured using `configure --prefix=/usr --mandir=/usr/share/man
- --infodir=/usr/share/info --disable-dependency-tracking --without-x'
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: nil
locale-coding-system: nil
default-enable-multibyte-characters: t
Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:
1. Create a username* with an @ symbol in it (eg "test@localhost") and su
to it.
2. emacs test.txt
3. Enter some text and attempt to save it.
Emacs will warn that the file is in use by another process and report
its own PID, despite being the only editor accessing the file. Examining
the output of ls -l while this prompt is displayed shows a symlink named
.#filename, linked to test@localhost@MACHINENAME.PID
I've verified this on a linux system with a normal local user named
"test@localhost" as well; this is not dependant on directory-based
usernames.
* This came up because the machine I normally use, a Mac, has been
bound into an OpenDirectory domain and my username (as seen in $USER
and friends) is ojacobson@DOMAIN.COM.
_______________________________________________
bug-gnu-emacs mailing list
bug-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnu-emacs
------- End of forwarded message -------
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [ojacobson@riptown.com: Usernames with @ signs break "file being modified by another user" lock symlinks]
2007-07-23 4:28 Richard Stallman
@ 2007-07-23 14:10 ` Jason Rumney
2007-07-23 22:31 ` Richard Stallman
0 siblings, 1 reply; 6+ messages in thread
From: Jason Rumney @ 2007-07-23 14:10 UTC (permalink / raw)
To: rms; +Cc: emacs-devel
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 USER@HOST.PID:BOOT_TIME. If can't parse, return -1. */
/* The USER is everything before the first @. */
at = index (lfinfo, '@');
dot = rindex (lfinfo, '.');
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [ojacobson@riptown.com: Usernames with @ signs break "file being modified by another user" lock symlinks]
2007-07-23 14:10 ` Jason Rumney
@ 2007-07-23 22:31 ` Richard Stallman
2007-07-23 22:37 ` Jason Rumney
0 siblings, 1 reply; 6+ messages in thread
From: Richard Stallman @ 2007-07-23 22:31 UTC (permalink / raw)
To: Jason Rumney; +Cc: emacs-devel
Would you please implement that approach, then ack?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [ojacobson@riptown.com: Usernames with @ signs break "file being modified by another user" lock symlinks]
2007-07-23 22:31 ` Richard Stallman
@ 2007-07-23 22:37 ` Jason Rumney
0 siblings, 0 replies; 6+ messages in thread
From: Jason Rumney @ 2007-07-23 22:37 UTC (permalink / raw)
To: rms; +Cc: emacs-devel
Richard Stallman wrote:
> Would you please implement that approach, then ack?
>
Checked into the Emacs 22 branch.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-07-23 22:37 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-15 16:50 [ojacobson@riptown.com: Usernames with @ signs break "file being modified by another user" lock symlinks] Richard Stallman
-- strict thread matches above, loose matches on Subject: below --
2007-07-23 4:28 Richard Stallman
2007-07-23 14:10 ` Jason Rumney
2007-07-23 22:31 ` Richard Stallman
2007-07-23 22:37 ` Jason Rumney
2007-07-05 1:31 Richard Stallman
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.