summaryrefslogtreecommitdiff
path: root/TSRM/tsrm_win32.c
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2009-08-25 09:16:53 +0000
committerPierre Joye <pajoye@php.net>2009-08-25 09:16:53 +0000
commit056f0aea307ecd32020e5333d8a2f89222e68b6e (patch)
tree93bbd6fa8772f040b52ac93471444ef72ab41ad0 /TSRM/tsrm_win32.c
parent4c85f48c893ecefef79d1f8ca117a1abf04a5a50 (diff)
downloadphp-git-056f0aea307ecd32020e5333d8a2f89222e68b6e.tar.gz
- fix #49047, touch may fail on directory
Diffstat (limited to 'TSRM/tsrm_win32.c')
-rw-r--r--TSRM/tsrm_win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/TSRM/tsrm_win32.c b/TSRM/tsrm_win32.c
index 53cfa6175b..bfaac2e446 100644
--- a/TSRM/tsrm_win32.c
+++ b/TSRM/tsrm_win32.c
@@ -170,7 +170,7 @@ TSRM_API int tsrm_win32_access(const char *pathname, int mode)
fAccess = bucket->is_readable;
goto Finished;
}
- desired_access = FILE_GENERIC_READ;
+ desired_access = FILE_GENERIC_READ|FILE_FLAG_BACKUP_SEMANTICS;
} else { // if(mode <= 6)
if(bucket != NULL && bucket->is_rvalid && bucket->is_wvalid) {
fAccess = bucket->is_readable & bucket->is_writable;