* fhandler.cc (fhandler_base::open): Add FILE_READ_ATTRIBUTES to

access flags in case of query_read_control case, add FILE_READ_DATA
	in case of query_stat_control.
This commit is contained in:
Corinna Vinschen 2006-02-22 16:40:42 +00:00
parent f41c4c7ced
commit b65479ca2e
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2006-02-22 Corinna Vinschen <corinna@vinschen.de>
* fhandler.cc (fhandler_base::open): Add FILE_READ_ATTRIBUTES to
access flags in case of query_read_control case, add FILE_READ_DATA
in case of query_stat_control.
2006-02-20 Christopher Faylor <cgf@timesys.com>
* spawn.cc (av::fixup): Check for .bat and friends specifically now

View File

@ -586,11 +586,11 @@ fhandler_base::open (int flags, mode_t mode)
switch (query_open ())
{
case query_read_control:
access = READ_CONTROL;
access = READ_CONTROL | FILE_READ_ATTRIBUTES;
create_options = FILE_OPEN_FOR_BACKUP_INTENT;
break;
case query_stat_control:
access = READ_CONTROL | FILE_READ_ATTRIBUTES;
access = READ_CONTROL | FILE_READ_ATTRIBUTES | FILE_READ_DATA;
create_options = FILE_OPEN_FOR_BACKUP_INTENT;
break;
case query_write_control: