summaryrefslogtreecommitdiff
path: root/TSRM
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2009-09-04 06:59:08 +0000
committerPierre Joye <pajoye@php.net>2009-09-04 06:59:08 +0000
commit542c087a865329dca7ed354a8a8e7523418c1fa7 (patch)
tree397f66d9706418b7cf45f5639db8283dec2d7b6e /TSRM
parentbcde6a023c4a8638a38cfd2b6066c684b843ba12 (diff)
downloadphp-git-542c087a865329dca7ed354a8a8e7523418c1fa7.tar.gz
- be sure that we use the user token by default (Christian Wenz)
Diffstat (limited to 'TSRM')
-rw-r--r--TSRM/tsrm_win32.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/TSRM/tsrm_win32.c b/TSRM/tsrm_win32.c
index 589ee1e1ef..58216efa9d 100644
--- a/TSRM/tsrm_win32.c
+++ b/TSRM/tsrm_win32.c
@@ -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);