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

---------

From: Daniel Stenberg (daniel@haxx.se)
Date: Wed Jul 30 2003 - 00:18:17 CDT


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

---------

This archive was generated by hypermail 2.1.7.