This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
RE: [RFA] Avoid calling stat with empty name in relocate_gdb_directory
- From: "Pierre Muller" <pierre dot muller at ics-cnrs dot unistra dot fr>
- To: "'Tom Tromey'" <tromey at redhat dot com>
- Cc: <gdb-patches at sourceware dot org>
- Date: Thu, 3 Jan 2013 23:19:20 +0100
- Subject: RE: [RFA] Avoid calling stat with empty name in relocate_gdb_directory
- References: <29503.7594777115$1354726985@news.gmane.org> <87sj7ks7g6.fsf@fleche.redhat.com> <434.327257289802$1354751122@news.gmane.org> <87d2ynxc6t.fsf@fleche.redhat.com> <26262.2907328934$1355473042@news.gmane.org> <87r4m20yqb.fsf@fleche.redhat.com>
> -----Message d'origine-----
> De?: gdb-patches-owner@sourceware.org [mailto:gdb-patches-
> owner@sourceware.org] De la part de Tom Tromey
> Envoyé?: jeudi 3 janvier 2013 21:59
> À?: Pierre Muller
> Cc?: gdb-patches@sourceware.org
> Objet?: Re: [RFA] Avoid calling stat with empty name in
> relocate_gdb_directory
>
> >>>>> "Pierre" == Pierre Muller <pierre.muller@ics-cnrs.unistra.fr>
writes:
>
> Pierre> I still think that the approach of testing if *dir == '\0'
> Pierre> is safer...
>
> That is ok by me.
Thanks Tom,
I applied the patch.
Pierre