From: Günther Deschner Date: Tue, 21 Apr 2009 14:18:51 +0000 (+0200) Subject: s3-svcctl: indicate that the spooler is already running if it does. X-Git-Tag: tdb-1.1.5~903 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16b2f4b55a80314aa733dd7f23543c1c3926223c;p=thirdparty%2Fsamba.git s3-svcctl: indicate that the spooler is already running if it does. Guenther --- diff --git a/source3/services/svc_spoolss.c b/source3/services/svc_spoolss.c index bb2b892c809..4a2cb789775 100644 --- a/source3/services/svc_spoolss.c +++ b/source3/services/svc_spoolss.c @@ -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;