]> granicus.if.org Git - php/commitdiff
- Merge revision 288028, use of the user token by default, and fix for touch and...
authorPierre Joye <pajoye@php.net>
Fri, 9 Oct 2009 14:06:35 +0000 (14:06 +0000)
committerPierre Joye <pajoye@php.net>
Fri, 9 Oct 2009 14:06:35 +0000 (14:06 +0000)
TSRM/tsrm_win32.c

index 589ee1e1efc37991be2fc8886166eefe2aee858f..78195005b859a7a83e374cc15e8d917e17b30cc2 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;
                        }
@@ -318,7 +318,7 @@ TSRM_API FILE *popen_ex(const char *command, const char *type, const char *cwd,
        char *ptype = (char *)type;
        HANDLE thread_token = NULL;
        HANDLE token_user = NULL;
-       BOOL asuser = FALSE;
+       BOOL asuser = TRUE;
 
        TSRMLS_FETCH();