* fhandler_disk_file.cc (fhandler_disk_file::fchmo): Try opening

in query_read mode if query_write fails.
	* fhandler_disk_file.cc (fhandler_disk_file::fchown): Ditto.
	* fhandler_disk_file.cc (fhandler_disk_file::facl): Ditto.
This commit is contained in:
Corinna Vinschen 2004-04-15 15:56:52 +00:00
parent 7af28dc49a
commit 703b16e3ab
2 changed files with 22 additions and 3 deletions

View File

@ -1,3 +1,10 @@
2004-04-15 Corinna Vinschen <corinna@vinschen.de>
* fhandler_disk_file.cc (fhandler_disk_file::fchmo): Try opening
in query_read mode if query_write fails.
* fhandler_disk_file.cc (fhandler_disk_file::fchown): Ditto.
* fhandler_disk_file.cc (fhandler_disk_file::facl): Ditto.
2004-04-14 Corinna Vinschen <corinna@vinschen.de>
* ntdll.h: Fix copyright date.

View File

@ -382,7 +382,11 @@ fhandler_disk_file::fchmod (mode_t mode)
{
query_open (query_write_control);
if (!(oret = open_fs (O_BINARY, 0)))
return -1;
{
query_open (query_read_control);
if (!(oret = open_fs (O_BINARY, 0)))
return -1;
}
}
if (!allow_ntsec && allow_ntea) /* Not necessary when manipulating SD. */
@ -423,7 +427,11 @@ fhandler_disk_file::fchown (__uid32_t uid, __gid32_t gid)
{
query_open (query_write_control);
if (!(oret = open_fs (O_BINARY, 0)))
return -1;
{
query_open (query_read_control);
if (!(oret = open_fs (O_BINARY, 0)))
return -1;
}
}
mode_t attrib = 0;
@ -456,7 +464,11 @@ fhandler_disk_file::facl (int cmd, int nentries, __aclent32_t *aclbufp)
{
query_open (query_write_control);
if (!(oret = open_fs (O_BINARY, 0)))
return -1;
{
query_open (query_read_control);
if (!(oret = open_fs (O_BINARY, 0)))
return -1;
}
}
if (!pc.has_acls () || !allow_ntsec)