inability to open file as failure if only SetFileAttributes is
going to be called. Only call set_file_attribute if really necessary.
2005-05-03 Corinna Vinschen <corinna@vinschen.de>
+ * fhandler_disk_file.cc (fhandler_disk_file::fchmod): Don't treat
+ inability to open file as failure if only SetFileAttributes is
+ going to be called. Only call set_file_attribute if really necessary.
+
+2005-05-03 Corinna Vinschen <corinna@vinschen.de>
+
* fhandler_socket.cc (get_inet_addr): Add missing __seterrno call.
2005-05-01 Christopher Faylor <cgf@timesys.com>
{
query_open (query_write_control);
if (!(oret = open (O_BINARY, 0)))
- return -1;
+ {
+ /* If the file couldn't be opened, that's really only a problem if
+ ACLs or EAs should get written. */
+ if ((allow_ntsec && pc.has_acls ()) || allow_ntea)
+ return -1;
+ }
}
- if (wincap.has_security ())
+ if ((allow_ntsec && pc.has_acls ()) || allow_ntea)
{
if (!allow_ntsec && allow_ntea) /* Not necessary when manipulating SD. */
SetFileAttributes (pc, (DWORD) pc & ~FILE_ATTRIBUTE_READONLY);