php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #70961
Patch permit-service-acl.patch revision 2015-11-23 20:27 UTC by bdagnin at incontrol dot co dot nz

Patch permit-service-acl.patch for win32service Bug #70961

Patch version 2015-11-23 20:27 UTC

Return to Bug #70961 | Download this patch
Patch Revisions:

Developer: bdagnin@incontrol.co.nz

Index: win32service.c
===================================================================
--- win32service.c	(revision 337426)
+++ win32service.c	(working copy)
@@ -472,7 +472,7 @@
 		RETURN_FALSE;
 	}
 
-	hmgr = OpenSCManager(machine, NULL, SC_MANAGER_ALL_ACCESS);
+	hmgr = OpenSCManager(machine, NULL, SC_MANAGER_CONNECT);
 	if (hmgr) {
 		hsvc = OpenService(hmgr, service, SERVICE_START);
 		if (hsvc) {
@@ -503,7 +503,7 @@
 		RETURN_FALSE;
 	}
 
-	hmgr = OpenSCManager(machine, NULL, SC_MANAGER_ALL_ACCESS);
+	hmgr = OpenSCManager(machine, NULL, SC_MANAGER_CONNECT);
 	if (hmgr) {
 		hsvc = OpenService(hmgr, service, access);
 		if (hsvc) {
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Oct 11 06:01:27 2024 UTC