Re: [RFA] .gdbinit security (revived) [incl doc]

Jan Kratochvil
2010-11-24T21:23:47Z

On Tue, 23 Nov 2010 19:26:31 +0100, Keith Seitz wrote:
> + /* If our group ID matches the file, read it in
> + without warning/querying the user. */
> +#ifdef HAVE_GETGID
> + if (statbuf.st_gid != getgid ())
> +#endif

So currently on `chmod 666 .gdbinit' it no longer traps...

BTW do people really need this feature? I always use my alias gdbn to force
-nx to not load any .gdbinit, as I generally do not expect which project which
way changes my GDB behavior.

src/gdb/.gdbinit is the most invasive one, it breaks GDB completely. :-)

Other projects incl. bash could also use such `$PWD/.*rc' reading policies.
They do not.

Thanks,
Jan