From: Jeffrey Altman Date: Tue, 2 Mar 2004 15:41:43 +0000 (+0000) Subject: fix-service-start-permissions-20040302 X-Git-Tag: openafs-devel-1_3_60~74 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=c5689df2864cb1f863cd35d760eefdb75ec4d965;p=packages%2Fo%2Fopenafs.git 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. --- diff --git a/src/WINNT/client_creds/main.cpp b/src/WINNT/client_creds/main.cpp index 81ad80b0e..b55d593db 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 c42e56e68..3564fa736 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);