* fhandler.h (enum query_state): Add query_write_dac flag.
* fhandler_disk_file.cc (fhandler_disk_file::fchmod): Open file
with query_write_dac instead of query_write_control.
+2010-09-24 Corinna Vinschen <corinna@vinschen.de>
+
+ * fhandler.cc (fhandler_base::open): Handle query_write_dac flag.
+ * fhandler.h (enum query_state): Add query_write_dac flag.
+ * fhandler_disk_file.cc (fhandler_disk_file::fchmod): Open file
+ with query_write_dac instead of query_write_control.
+
2010-09-24 Corinna Vinschen <corinna@vinschen.de>
* errno.cc (errmap): Map ERROR_BAD_NET_RESP to ENOSYS.
case query_write_control:
access = READ_CONTROL | WRITE_OWNER | WRITE_DAC | FILE_WRITE_ATTRIBUTES;
break;
+ case query_write_dac:
+ access = READ_CONTROL | WRITE_DAC | FILE_WRITE_ATTRIBUTES;
+ break;
case query_write_attributes:
access = READ_CONTROL | FILE_WRITE_ATTRIBUTES;
break;
query_read_control = 1,
query_read_attributes = 2,
query_write_control = 3,
- query_write_attributes = 4
+ query_write_dac = 4,
+ query_write_attributes = 5
};
enum del_lock_called_from {
if (!get_handle ())
{
- query_open (query_write_control);
+ query_open (query_write_dac);
if (!(oret = open (O_BINARY, 0)))
{
/* Need WRITE_DAC|WRITE_OWNER to write ACLs. */