]> granicus.if.org Git - php/commitdiff
- fix ACL cache for read check
authorPierre Joye <pajoye@php.net>
Sat, 19 Sep 2009 20:54:34 +0000 (20:54 +0000)
committerPierre Joye <pajoye@php.net>
Sat, 19 Sep 2009 20:54:34 +0000 (20:54 +0000)
TSRM/tsrm_win32.c

index 4683053e439e0cf2d8af912105b41e068c2699f6..2a8503e82c776b9cf232198170e9e4ff79bcf09f 100644 (file)
@@ -201,7 +201,7 @@ TSRM_API int tsrm_win32_access(const char *pathname, int mode)
 
                /* Keep the result in realpath_cache */
                if(bucket != NULL) {
-                       if(desired_access == FILE_GENERIC_READ) {
+                       if(desired_access == (FILE_GENERIC_READ | FILE_FLAG_BACKUP_SEMANTICS)) {
                                bucket->is_rvalid = 1;
                                bucket->is_readable = fAccess;
                        }