* 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.
This commit is contained in:
Corinna Vinschen
2010-09-24 16:22:53 +00:00
parent 3498f76deb
commit 7438a10a01
4 changed files with 13 additions and 2 deletions

View File

@@ -479,6 +479,9 @@ fhandler_base::open (int flags, mode_t mode)
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;