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:
parent
a1a02bfac2
commit
0174d4d3b2
@ -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.
|
||||
********************************************************************/
|
||||
|
Loading…
Reference in New Issue
Block a user