From 542c087a865329dca7ed354a8a8e7523418c1fa7 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Fri, 4 Sep 2009 06:59:08 +0000 Subject: [PATCH] - be sure that we use the user token by default (Christian Wenz) --- TSRM/tsrm_win32.c | 3 +-- 1 file changed, 1 insertion(+), 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); -- 2.49.0