summaryrefslogtreecommitdiff
path: root/file_io/win32/open.c
diff options
context:
space:
mode:
authormturk <mturk@13f79535-47bb-0310-9956-ffa450edef68>2004-09-23 06:22:48 +0000
committermturk <mturk@13f79535-47bb-0310-9956-ffa450edef68>2004-09-23 06:22:48 +0000
commit1addc6d40dba36a26de82011061d493604a122ae (patch)
treef33e766362a6dbffb6aa924f8a42f4521d35793c /file_io/win32/open.c
parenta8981222f2ff23f70718e4aed1fb127e3a4d31e4 (diff)
downloadlibapr-1addc6d40dba36a26de82011061d493604a122ae.tar.gz
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. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65343 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'file_io/win32/open.c')
-rw-r--r--file_io/win32/open.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/file_io/win32/open.c b/file_io/win32/open.c
index 973cf3bf5..1b950fc21 100644
--- a/file_io/win32/open.c
+++ b/file_io/win32/open.c
@@ -324,6 +324,8 @@ APR_DECLARE(apr_status_t) apr_file_open(apr_file_t **new, const char *fname,
else {
return APR_EACCES;
}
+ if (flag & APR_READCONTROL)
+ oflags |= READ_CONTROL;
}
if (flag & APR_XTHREAD) {