* fhandler_disk_file.cc (fhandler_disk_file::opendir): Add missing

OBJ_INHERIT flag when creating OBJECT_ATTRIBUTES.
	(fhandler_disk_file::rewinddir): Ditto.
This commit is contained in:
Corinna Vinschen 2007-07-05 09:35:36 +00:00
parent 3854c5c0d5
commit 64f50c2b3c
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2007-07-05 Corinna Vinschen <corinna@vinschen.de>
* fhandler_disk_file.cc (fhandler_disk_file::opendir): Add missing
OBJ_INHERIT flag when creating OBJECT_ATTRIBUTES.
(fhandler_disk_file::rewinddir): Ditto.
2007-07-04 Corinna Vinschen <corinna@vinschen.de>
* times.cc: Define __timezonefunc__ before including time.h to protect

View File

@ -1579,7 +1579,8 @@ fhandler_disk_file::opendir (int fd)
{
/* fdopendir() case. Just initialize with the emtpy upath
and reuse the exisiting handle. */
InitializeObjectAttributes (&attr, &upath, OBJ_CASE_INSENSITIVE,
InitializeObjectAttributes (&attr, &upath,
OBJ_CASE_INSENSITIVE | OBJ_INHERIT,
get_handle (), NULL);
}
else
@ -1939,7 +1940,8 @@ fhandler_disk_file::rewinddir (DIR *dir)
IO_STATUS_BLOCK io;
HANDLE new_dir;
InitializeObjectAttributes (&attr, &fname, OBJ_CASE_INSENSITIVE,
InitializeObjectAttributes (&attr, &fname,
OBJ_CASE_INSENSITIVE | OBJ_INHERIT,
dir->__handle, NULL);
status = NtOpenFile (&new_dir, SYNCHRONIZE | FILE_LIST_DIRECTORY,
&attr, &io, FILE_SHARE_VALID_FLAGS,