Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2014-08-27 00:47:46 +0400
committerCorinna Vinschen <corinna@vinschen.de>2014-08-27 00:47:46 +0400
commitdc847e6b9e61475d5db1bea0b6df0857924837a4 (patch)
tree19bd756fb379fca3c8d63d4cfdad95f630c71c52 /winsup/cygwin/path.h
parent12b244394c45b1fdc1532e83972b3a579ff3bf8f (diff)
* path.h (path_conv::init_reopen_attr): Change from void to returning
POBJECT_ATTRIBUTES. Take OBJECT_ATTRIBUTES reference as argument, not pointer. * fhandler_disk_file.cc: Throughout accommodate above change. * syscalls.cc: Ditto. * ntea.cc (read_ea): Don't set hdl to NULL if it's already NULL. Set attr with pc.init_reopen_attr before trying to reopen file. (write_ea): Ditto. * security.cc (get_file_sd): Use pc.init_reopen_attr rather than pc.get_object_attr when trying to reopen file. (set_file_sd): Ditto.
Diffstat (limited to 'winsup/cygwin/path.h')
-rw-r--r--winsup/cygwin/path.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/winsup/cygwin/path.h b/winsup/cygwin/path.h
index dfd8f0241..8d4525890 100644
--- a/winsup/cygwin/path.h
+++ b/winsup/cygwin/path.h
@@ -281,14 +281,15 @@ class path_conv
NULL, sa.lpSecurityDescriptor);
return &attr;
}
- inline void init_reopen_attr (POBJECT_ATTRIBUTES attr, HANDLE h)
+ inline POBJECT_ATTRIBUTES init_reopen_attr (OBJECT_ATTRIBUTES &attr, HANDLE h)
{
if (has_buggy_reopen ())
- InitializeObjectAttributes (attr, get_nt_native_path (),
+ InitializeObjectAttributes (&attr, get_nt_native_path (),
objcaseinsensitive (), NULL, NULL)
else
- InitializeObjectAttributes (attr, &ro_u_empty, objcaseinsensitive (),
+ InitializeObjectAttributes (&attr, &ro_u_empty, objcaseinsensitive (),
h, NULL);
+ return &attr;
}
inline size_t get_wide_win32_path_len ()
{