mirror of
https://git.openafs.org/openafs.git
synced 2025-01-20 07:51:00 +00:00
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.
This commit is contained in:
parent
2617395f90
commit
c5689df286
@ -264,8 +264,7 @@ BOOL InitApp (LPSTR pszCmdLineA)
|
|||||||
{
|
{
|
||||||
SC_HANDLE hService;
|
SC_HANDLE hService;
|
||||||
if ((hService = OpenService( hManager, TEXT("TransarcAFSDaemon"),
|
if ((hService = OpenService( hManager, TEXT("TransarcAFSDaemon"),
|
||||||
SERVICE_CHANGE_CONFIG | SERVICE_QUERY_CONFIG |
|
SERVICE_QUERY_STATUS | SERVICE_START) ) != NULL)
|
||||||
SERVICE_QUERY_STATUS) ) != NULL)
|
|
||||||
{
|
{
|
||||||
if (StartService(hService, 0, 0)) {
|
if (StartService(hService, 0, 0)) {
|
||||||
if ( IsDebuggerPresent() )
|
if ( IsDebuggerPresent() )
|
||||||
|
@ -203,8 +203,7 @@ BOOL CALLBACK Main_DlgProc (HWND hDlg, UINT msg, WPARAM wp, LPARAM lp)
|
|||||||
{
|
{
|
||||||
SC_HANDLE hService;
|
SC_HANDLE hService;
|
||||||
if ((hService = OpenService ( hManager, TEXT("TransarcAFSDaemon"),
|
if ((hService = OpenService ( hManager, TEXT("TransarcAFSDaemon"),
|
||||||
SERVICE_CHANGE_CONFIG | SERVICE_QUERY_CONFIG |
|
SERVICE_QUERY_STATUS | SERVICE_START)) != NULL)
|
||||||
SERVICE_QUERY_STATUS)) != NULL)
|
|
||||||
{
|
{
|
||||||
if (StartService (hService, 0, 0))
|
if (StartService (hService, 0, 0))
|
||||||
TestAndDoMapShare(SERVICE_START_PENDING);
|
TestAndDoMapShare(SERVICE_START_PENDING);
|
||||||
|
Loading…
Reference in New Issue
Block a user