commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1814183 - /commons/proper/daemon/trunk/src/native/windows/src/rprocess.c
Date Fri, 03 Nov 2017 13:42:26 GMT
Author: markt
Date: Fri Nov  3 13:42:26 2017
New Revision: 1814183

URL: http://svn.apache.org/viewvc?rev=1814183&view=rev
Log:
Minimum target platform is WinXP so creating a process as a given user is always supported

Modified:
    commons/proper/daemon/trunk/src/native/windows/src/rprocess.c

Modified: commons/proper/daemon/trunk/src/native/windows/src/rprocess.c
URL: http://svn.apache.org/viewvc/commons/proper/daemon/trunk/src/native/windows/src/rprocess.c?rev=1814183&r1=1814182&r2=1814183&view=diff
==============================================================================
--- commons/proper/daemon/trunk/src/native/windows/src/rprocess.c (original)
+++ commons/proper/daemon/trunk/src/native/windows/src/rprocess.c Fri Nov  3 13:42:26 2017
@@ -431,8 +431,7 @@ apxCreateProcessW(APXHANDLE hPool, DWORD
     APXHANDLE hProcess;
     LPAPXPROCESS lpProc;
     HANDLE hUserToken = NULL;
-    /* CreateProcessAsUser is supported only on NT */
-    if (szUsername && (APX_GET_OSLEVEL() >= APX_WINVER_NT_4)) {
+    if (szUsername) {
         HANDLE hUser;
         if (!LogonUserW(szUsername,
                         NULL,



Mime
View raw message