1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

s3-spoolss: add snum_is_shared_printer fn.

Guenther
This commit is contained in:
Günther Deschner 2009-03-11 00:27:54 +01:00
parent a1a02bfac2
commit 0174d4d3b2

View File

@ -4589,6 +4589,14 @@ static WERROR construct_printer_info2(TALLOC_CTX *mem_ctx,
return WERR_OK;
}
/********************************************************************
********************************************************************/
static bool snum_is_shared_printer(int snum)
{
return (lp_browseable(snum) && lp_snum_ok(snum) && lp_print_ok(snum));
}
/********************************************************************
Spoolss_enumprinters.
********************************************************************/