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: Glenn Morris <rgm <at> gnu.org>
To: "Elrod\, David" <elrodd <at> sharplabs.com>
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 02:47:32 -0400
"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.