]> 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 58216efa9dcfbe3bd49f45e60beeab7da7c09cb7..dedf05330a31c2962a7482b365d23b01db55f85d 100644 (file)
@@ -200,7 +200,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;
                        }