1
0
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:
Günther Deschner 2009-04-21 16:18:51 +02:00
parent aa26bdd719
commit 16b2f4b55a

View File

@ -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;