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

From: Daniel Stenberg <>
Date: Wed, 30 Jul 2003 07:18:17 +0200 (CEST)
Message-ID: <>

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 - - +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