GNU bug report logs - #9920
23.2; Not trusting file .hg/hgrc from untrusted user... for 'vc-hg.el'.

Previous Next

Package: emacs;

Reported by: Oleksandr Gavenko <gavenko <at> bifit.com.ua>

Date: Mon, 31 Oct 2011 16:11:01 UTC

Severity: normal

Found in version 23.2

Fixed in version 23.3

Done: Dan Nicolaescu <dann <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Dan Nicolaescu <dann <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#9920: closed (23.2; Not trusting file .hg/hgrc from untrusted
 user... for 'vc-hg.el'.)
Date: Wed, 02 Nov 2011 14:11:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Wed, 02 Nov 2011 10:08:09 -0400
with message-id <yxqsjm6fwhi.fsf <at> fencepost.gnu.org>
and subject line Re: bug#9920: 23.2; Not trusting file .hg/hgrc from untrusted user... for 'vc-hg.el'.
has caused the debbugs.gnu.org bug report #9920,
regarding 23.2; Not trusting file .hg/hgrc from untrusted user... for 'vc-hg.el'.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
9920: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9920
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Oleksandr Gavenko <gavenko <at> bifit.com.ua>
To: bug-gnu-emacs <at> gnu.org
Subject: 23.2;
	Not trusting file .hg/hgrc from untrusted user... for 'vc-hg.el'.
Date: Mon, 31 Oct 2011 15:33:18 +0200
Under Debian I have:

  $ ls -l .hg/hgrc
-rw-rw-r-- 1 www-data www-data 97  19 18:23 .hg/hgrc

To resolve issue http://mercurial.selenic.com/wiki/Trust I put to '~/.hgrc':

  [trusted]
  users = apache, daemon, www-data
  groups = apache, daemon, www-data

but Emacs ignore that as some 'hg' command invoked with
'HGRCPATH='. So

  $ hg st README.rst
M README.rst
  $  HGRCPATH= hg st README.rst
Not trusting file /usr/srv/hg/test/.hg/hgrc from untrusted user 
www-data, group www-data
Not trusting file .hg/hgrc from untrusted user www-data, group www-data
Not trusting file /usr/srv/hg/test/.hg/hgrc from untrusted user 
www-data, group www-data
Not trusting file /usr/srv/hg/test/.hg/hgrc from untrusted user 
www-data, group www-data
M README.rst

Because of this Emacs VC status line show "Not trusting file..." instead 
of "Hg-201".

And so C-x v v does not work as Emacs does not detect local changes in 
file...

So I can not commit from a file. As workaround I commit from VC-dir.

-- 
Best regards!


[Message part 3 (message/rfc822, inline)]
From: Dan Nicolaescu <dann <at> gnu.org>
To: Oleksandr Gavenko <gavenko <at> bifit.com.ua>
Cc: 9920-done <at> debbugs.gnu.org
Subject: Re: bug#9920: 23.2;
	Not trusting file .hg/hgrc from untrusted user... for 'vc-hg.el'.
Date: Wed, 02 Nov 2011 10:08:09 -0400
Closing, works in 23.3.


This bug report was last modified 13 years and 202 days ago.

Previous Next


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