Fix bug 7704 - Possible error in fix to rpc_server/srv_spoolss_nt.c.
authorJeremy Allison <jra@samba.org>
Mon, 4 Oct 2010 22:48:04 +0000 (15:48 -0700)
committerJeremy Allison <jra@sn-devel-104.sn.samba.org>
Tue, 5 Oct 2010 17:32:34 +0000 (17:32 +0000)
From pjb1008@cam.ac.uk - Service numbers start from 0.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Oct  5 17:32:34 UTC 2010 on sn-devel-104

source3/rpc_server/srv_spoolss_nt.c

index 8c4067bdc89ed65fd31b3e8fc138fb6e58e90bd6..4de2cdbae63829c92d30552ee04503f91f10439d 100644 (file)
@@ -409,7 +409,7 @@ static WERROR delete_printer_hook(TALLOC_CTX *ctx, struct security_token *token,
        reload_services(msg_ctx, -1, false);
        unbecome_root();
 
-       if ( lp_servicenumber( sharename )  > 0 )
+       if ( lp_servicenumber( sharename ) >= 0 )
                return WERR_ACCESS_DENIED;
 
        return WERR_OK;