Re: [hypermail] Followup [was New bug: attachments are not being overwritten]

From: Daniel Stenberg <daniel_at_haxx.se_at_hypermail-project.org>
Date: Wed, 30 Jul 2003 07:18:17 +0200 (CEST)
Message-ID: <Pine.LNX.4.55.0307300716550.10862_at_linux3.contactor.se>


On Tue, 29 Jul 2003, Jose Kahan wrote:

> The solution is either to unlink the file if it already exists or remove the
> O_CREAT flag and use a chmod afterwards to set the access rights.
>
> Which solution shall we adopt?

My vote goes on the removal of the O_CREAT flag. But why do you need to chmod afterwards, open() sets the properties as the third argument specifies, right?

-- 
      Daniel Stenberg - http://daniel.haxx.se - +46-705-44 31 77
   ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol
Received on Wed 30 Jul 2003 07:18:41 AM GMT

This archive was generated by hypermail 2.3.0 : Sat 13 Mar 2010 03:46:12 AM GMT GMT