Skip site navigation (1) Skip section navigation (2)

Re: Bad bug in fopen() wrapper code

From: "Magnus Hagander" <mha(at)sollentuna(dot)net>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, <pgsql-hackers(at)postgresql(dot)org>
Cc: <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Bad bug in fopen() wrapper code
Date: 2006-09-24 17:03:09
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackerspgsql-patches
> > Attached patch sets the  O_CREAT option when appending to files.
> That looks correct, but I went looking to see if there were 
> any other mistakes of the same ilk, and I'm wondering what 
> the sense is in openFlagsToCreateFileFlags ... seems like 
> it's ignoring O_EXCL in some combinations and not others.  Is 
> that right?

That is part of the original open() code that Claudio did back for 8.0,
so it has definitly been working since then. I haven't really read into
the code, though... But a qiuck look doesn't show me any place wher eit
does ignore O_EXCL - which combination would that be?


In response to


pgsql-hackers by date

Next:From: Magnus HaganderDate: 2006-09-24 17:03:38
Subject: Re: pg_regress starting postmaster
Previous:From: Tom LaneDate: 2006-09-24 17:02:20
Subject: Re: pg_regress starting postmaster

pgsql-patches by date

Next:From: Tom LaneDate: 2006-09-24 17:11:03
Subject: Re: Updates to pg_regress.c
Previous:From: Tom LaneDate: 2006-09-24 17:00:22
Subject: Re: pg_ctl error msg on Windows 2000

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group