]> granicus.if.org Git - php/commitdiff
- be sure that we use the user token by default (Christian Wenz)
authorPierre Joye <pajoye@php.net>
Fri, 4 Sep 2009 06:59:08 +0000 (06:59 +0000)
committerPierre Joye <pajoye@php.net>
Fri, 4 Sep 2009 06:59:08 +0000 (06:59 +0000)
TSRM/tsrm_win32.c

index 589ee1e1efc37991be2fc8886166eefe2aee858f..58216efa9dcfbe3bd49f45e60beeab7da7c09cb7 100644 (file)
@@ -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();
 
@@ -380,7 +380,6 @@ TSRM_API FILE *popen_ex(const char *command, const char *type, const char *cwd,
                if (err == ERROR_NO_TOKEN) {
                        asuser = FALSE;
                }
-
        }
 
        cmd = (char*)malloc(strlen(command)+strlen(TWG(comspec))+sizeof(" /c ")+2);