From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5586 invoked by alias); 19 Apr 2002 09:54:53 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 5509 invoked from network); 19 Apr 2002 09:54:46 -0000 Received: from unknown (HELO odin.inter.net.il) (192.114.186.10) by sources.redhat.com with SMTP; 19 Apr 2002 09:54:46 -0000 Received: from zaretsky ([80.230.2.40]) by odin.inter.net.il (Mirapoint Messaging Server MOS 2.9.3.2) with ESMTP id ABI92424; Fri, 19 Apr 2002 12:54:39 +0300 (IDT) Date: Fri, 19 Apr 2002 02:54:00 -0000 From: "Eli Zaretskii" To: brobecker@ACT-Europe.FR Message-Id: <6097-Fri19Apr2002124608+0300-eliz@is.elta.co.il> CC: gdb-patches@sources.redhat.com In-reply-to: <20020419111807.A7903@act-europe.fr> (message from Joel Brobecker on Fri, 19 Apr 2002 11:18:07 +0200) Subject: Re: [RFA] Should openp open directories? Reply-to: Eli Zaretskii References: <20020418122535.B11802@act-europe.fr> <20020419111807.A7903@act-europe.fr> X-SW-Source: 2002-04/txt/msg00623.txt.bz2 > Date: Fri, 19 Apr 2002 11:18:07 +0200 > From: Joel Brobecker > > It seems a sensible idea to return True when stat fails, except when the > file does not exist. This is okay with me (non-existing files will fail the open call anyhow). > > Also, did you try your patch when there's a directory by that name, but > > no executable program? If so, what does the patched GDB say and/or do? > > Yes. I tried "./gdb/gdb bfd" at the root of the gdb source directory and > got the following error message: > > bfd: No such file or directory. That's good. Thanks for testing. > The "or directory" part may be confusing... Yes, but it's a standard string associated with ENOENT, so I guess users of GDB should be acquainted with it.