+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
{
/* 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
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,