This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch/rfc/testsuite] Fix read-only fileio test on GNU/Linux


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]