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

s3-smbd: Fix flooding the logs with records we don't find in pcap.

Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Tue Aug 28 16:38:55 CEST 2012 on sn-devel-104
This commit is contained in:
Andreas Schneider 2012-08-28 14:17:22 +02:00 committed by Andreas Schneider
parent 9e441c4ed9
commit ba862f47d7

View File

@ -98,7 +98,7 @@ void delete_and_reload_printers(struct tevent_context *ev,
pname = lp_printername(session_info, snum);
/* check printer, but avoid removing non-autoloaded printers */
if (!pcap_printername_ok(pname) && lp_autoloaded(snum)) {
if (lp_autoloaded(snum) && !pcap_printername_ok(pname)) {
DEBUG(3, ("removing stale printer %s\n", pname));
if (is_printer_published(session_info, session_info,