mturk 2004/09/22 23:22:48
Modified: file_io/win32 open.c
Log:
Fix obtaining security info on files for NT+. The current implementation works
only with directories, but for files we need the READ_CONTROL open flag.
Revision Changes Path
1.123 +2 -0 apr/file_io/win32/open.c
Index: open.c
===================================================================
RCS file: /home/cvs/apr/file_io/win32/open.c,v
retrieving revision 1.122
retrieving revision 1.123
diff -u -r1.122 -r1.123
--- open.c 22 Sep 2004 18:21:30 -0000 1.122
+++ open.c 23 Sep 2004 06:22:48 -0000 1.123
@@ -324,6 +324,8 @@
else {
return APR_EACCES;
}
+ if (flag & APR_READCONTROL)
+ oflags |= READ_CONTROL;
}
if (flag & APR_XTHREAD) {