From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1527 invoked by alias); 26 Jan 2004 11:46:56 -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 1520 invoked from network); 26 Jan 2004 11:46:55 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 26 Jan 2004 11:46:55 -0000 Received: from int-mx2.corp.redhat.com (nat-pool-rdu-dmz.redhat.com [172.16.52.200] (may be forged)) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id i0QBksr08490 for ; Mon, 26 Jan 2004 06:46:54 -0500 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx2.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i0QBkrM21093 for ; Mon, 26 Jan 2004 06:46:53 -0500 Received: from cygbert.vinschen.de (vpn50-57.rdu.redhat.com [172.16.50.57]) by potter.sfbay.redhat.com (8.11.6/8.11.6) with ESMTP id i0QBkqb21932 for ; Mon, 26 Jan 2004 03:46:52 -0800 Received: by cygbert.vinschen.de (Postfix, from userid 500) id 8CED958458; Mon, 26 Jan 2004 12:46:50 +0100 (CET) Date: Mon, 26 Jan 2004 11:46:00 -0000 From: Corinna Vinschen To: gdb-patches@sources.redhat.com Subject: Re: [patch/rfc/testsuite] Fix read-only fileio test on GNU/Linux Message-ID: <20040126114650.GA6714@cygbert.vinschen.de> Reply-To: gdb-patches@sources.redhat.com Mail-Followup-To: gdb-patches@sources.redhat.com References: <3FF9C291.1080104@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3FF9C291.1080104@redhat.com> User-Agent: Mutt/1.4.1i X-SW-Source: 2004-01/txt/msg00667.txt.bz2 On Jan 5 15:01, Andrew Cagney wrote: > Hello, > > I think this deserves a "how did this ever work" award :-) > > The file was being created writeable (the S_IWUSR flag passed to open()) > so little wonder GNU/Linux allowed an open-write (causing the test to > fail) and who knows how/who this worked on BSD and remote systems. > > Tested on BSD and GNU/Linux. Baring comment I'll commit in a day or so. It's late but nevertheless, thanks. I compared with my original sources from end of 2002 in which I used just S_IRUSR. I'm still wondering why and when I added S_IWUSR before submitting this patch to FSF. Oh boy... Corinna -- Corinna Vinschen Cygwin Developer Red Hat, Inc.