if (binname) { binfile = open(binname, OPENBITMASK, set_filemode);
O_CREAT won't create a file if it already existsi, at least under Linux and Solaris 5.8:
If the file exists, this flag has no effect except as noted under O_EXCL below.
Using or not using the hypermail overwrite option produces the same behavior for attachments.
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?
-jose Received on Tue 29 Jul 2003 06:41:49 PM GMT
This archive was generated by hypermail 2.3.0 : Sat 13 Mar 2010 03:46:12 AM GMT GMT