1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-22 05:57:43 +03:00

s3-printing: Check for browseable too.

This commit is contained in:
Andreas Schneider 2012-02-10 14:00:05 +01:00 committed by Andreas Schneider
parent 1a65f90a34
commit fd85cd25e0

View File

@ -31,6 +31,11 @@
#include "messages.h"
#include "lib/param/loadparm.h"
static bool snum_is_shared_printer(int snum)
{
return (lp_browseable(snum) && lp_snum_ok(snum) && lp_print_ok(snum));
}
/**
* @brief Purge stale printers and reload from pre-populated pcap cache.
*
@ -85,7 +90,7 @@ void delete_and_reload_printers(struct tevent_context *ev,
}
/* skip no-printer services */
if (!(lp_snum_ok(snum) && lp_print_ok(snum))) {
if (!snum_is_shared_printer(snum)) {
continue;
}