GNU bug report logs - #9600
some gdbs ignore a world-writable .gdbinit

Previous Next

Package: emacs;

Reported by: rms <at> gnu.org

Date: Sun, 25 Sep 2011 17:36:03 UTC

Severity: minor

Tags: notabug, wontfix

Found in version 24.0.50

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #23 received at 9600 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 9600 <at> debbugs.gnu.org, rms <at> gnu.org, svenjoac <at> gmx.de
Subject: Re: bug#9600: 24.0.50; .gdbinit does not run
Date: Mon, 26 Sep 2011 03:26:18 -0400
Eli Zaretskii wrote:

> Yes, I think so.  At least if I chmod a file to remove all of its
> write bits, "bzr modified" doesn't call out that file, and if I modify
> it and "bzr revert", the reverted file keeps the mode bits I set on
> it.
>
> But I would really suggest to get and/or build a later GDB from
> official sources.

AFAICS, rms still has not said what the permissions of his gdbinit file
were, beyond "writable". It seems this must mean "world-writable".

I tested with Debian testing's gdb "7.3-debian". A gdbinit file writable
by me was fine, a world-writable gdbinit was rejected with

  warning: not using untrusted file ".gdbinit"

This seems entirely reasonable to me [1]. No need to build another gdb.
Just use a sensible umask when checking Emacs out from the repository.

Since I hope that everyone building Emacs from source does not use
`umask 000', I don't think any Emacs changes are needed.

[1] Also: http://www.cygwin.com/ml/gdb-patches/2005-05/msg00648.html




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

Previous Next


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