fix-service-start-permissions-20040302
authorJeffrey Altman <jaltman@mit.edu>
Tue, 2 Mar 2004 15:41:43 +0000 (15:41 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 2 Mar 2004 15:41:43 +0000 (15:41 +0000)
When merging the Skyrope changes I forgot to specify the SERVICE_START
privilege necessary to allow the -N option to work.

src/WINNT/client_creds/main.cpp
src/WINNT/client_creds/window.cpp

index 81ad80b..b55d593 100644 (file)
@@ -264,8 +264,7 @@ BOOL InitApp (LPSTR pszCmdLineA)
         {
             SC_HANDLE hService;
             if ((hService = OpenService( hManager, TEXT("TransarcAFSDaemon"), 
-                                         SERVICE_CHANGE_CONFIG | SERVICE_QUERY_CONFIG |
-                                         SERVICE_QUERY_STATUS) ) != NULL)
+                                         SERVICE_QUERY_STATUS | SERVICE_START) ) != NULL)
             {
                 if (StartService(hService, 0, 0)) {
                     if ( IsDebuggerPresent() )
index c42e56e..3564fa7 100644 (file)
@@ -203,8 +203,7 @@ BOOL CALLBACK Main_DlgProc (HWND hDlg, UINT msg, WPARAM wp, LPARAM lp)
               {
                   SC_HANDLE hService;
                   if ((hService = OpenService ( hManager, TEXT("TransarcAFSDaemon"), 
-                                                SERVICE_CHANGE_CONFIG | SERVICE_QUERY_CONFIG |
-                                                SERVICE_QUERY_STATUS)) != NULL)
+                                                SERVICE_QUERY_STATUS | SERVICE_START)) != NULL)
                   {
                       if (StartService (hService, 0, 0))
                           TestAndDoMapShare(SERVICE_START_PENDING);