mirror of
https://github.com/samba-team/samba.git
synced 2025-03-27 22:50:26 +03:00
s3-svcctl: indicate that the spooler is already running if it does.
Guenther
This commit is contained in:
parent
aa26bdd719
commit
16b2f4b55a
@ -50,6 +50,10 @@ static WERROR spoolss_start( const char *service )
|
||||
if ( _lp_disable_spoolss() )
|
||||
return WERR_ACCESS_DENIED;
|
||||
|
||||
if (lp_get_spoolss_state() == SVCCTL_RUNNING) {
|
||||
return WERR_SERVICE_ALREADY_RUNNING;
|
||||
}
|
||||
|
||||
lp_set_spoolss_state( SVCCTL_RUNNING );
|
||||
|
||||
return WERR_OK;
|
||||
|
Loading…
x
Reference in New Issue
Block a user