GNU bug report logs - #14250
file locking fails if the hostname contains an @ character

Previous Next

Package: emacs;

Reported by: "Elrod, David" <elrodd <at> sharplabs.com>

Date: Tue, 23 Apr 2013 20:07:01 UTC

Severity: minor

Found in version 23.1

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: "Elrod, David" <elrodd <at> sharplabs.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: "14250 <at> debbugs.gnu.org" <14250 <at> debbugs.gnu.org>
Subject: bug#14250: 23.1; Files locked by myself
Date: Thu, 20 Jun 2013 15:54:53 +0000
Problem solved!

Thanks Glenn!  I have no idea how the '@' got there in my host name.
That isn't common in host names here, or any other place I've worked.

However, I'm so used to seeing email addresses, I never noticed it.

Thank you,
David

________________________________________
From: Glenn Morris [rgm <at> gnu.org]
Sent: Wednesday, June 19, 2013 23:47
To: Elrod, David
Cc: 14250 <at> debbugs.gnu.org
Subject: Re: bug#14250: 23.1; Files locked by myself

"Elrod, David" wrote:

>   M-: (file-locked-p (buffer-file-name))
> returns
>   "elrodd <at> elroddDesk"
>
>   M-: (system-name)
> returns
>   "elroddDesk <at> enet.sharplabs.com"

Thanks!
The problem is the "@" in your system-name.
Can you change it to something without an "@", eg
  elroddDesk.enet.sharplabs.com
?

I don't think an "@" is valid in a hostname, is it?

filelock.c:current_lock_owner assumes that the username is "everything
before the last @"; ie there may in theory be "@" in the username, but
not in the hostname.




This bug report was last modified 3 years and 26 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.