From c5689df2864cb1f863cd35d760eefdb75ec4d965 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Tue, 2 Mar 2004 15:41:43 +0000 Subject: [PATCH] fix-service-start-permissions-20040302 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 | 3 +-- src/WINNT/client_creds/window.cpp | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/WINNT/client_creds/main.cpp b/src/WINNT/client_creds/main.cpp index 81ad80b0e3..b55d593db3 100644 --- a/src/WINNT/client_creds/main.cpp +++ b/src/WINNT/client_creds/main.cpp @@ -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() ) diff --git a/src/WINNT/client_creds/window.cpp b/src/WINNT/client_creds/window.cpp index c42e56e688..3564fa7369 100644 --- a/src/WINNT/client_creds/window.cpp +++ b/src/WINNT/client_creds/window.cpp @@ -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);