You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by wr...@apache.org on 2002/07/09 19:13:48 UTC

cvs commit: httpd-2.0/support/win32 ApacheMonitor.c

wrowe       2002/07/09 10:13:48

  Modified:    support/win32 ApacheMonitor.c
  Log:
    Fix access for non-Administrators (superusers and the like) to allow them
    to start and stop services, even without full permission to create or
    remove installed services.
  
  PR: 10460
  Submitted by: "Mladen Turk" <mt...@mappingsoft.com>
  
  Revision  Changes    Path
  1.21      +3 -3      httpd-2.0/support/win32/ApacheMonitor.c
  
  Index: ApacheMonitor.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/support/win32/ApacheMonitor.c,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- ApacheMonitor.c	16 Jun 2002 19:02:58 -0000	1.20
  +++ ApacheMonitor.c	9 Jul 2002 17:13:48 -0000	1.21
  @@ -780,13 +780,13 @@
       else
       {
           schSCManager = OpenSCManager(szComputerName, NULL,
  -                                     SC_MANAGER_ALL_ACCESS);
  +                                     GENERIC_EXECUTE);
           if (!schSCManager) {
               return FALSE;
           }
   
           schService = OpenService(schSCManager, szServiceName, 
  -                                 SERVICE_ALL_ACCESS);
  +                                 GENERIC_EXECUTE);
           if (schService != NULL)
           {
               retValue = FALSE;
  @@ -937,7 +937,7 @@
       {
           dwPid = 0;
           schSCManager = OpenSCManager(szComputerName, NULL,
  -                                     SC_MANAGER_ALL_ACCESS);
  +                                     GENERIC_READ);
           if (!schSCManager) {
               return FALSE;
           }