pcap_cache_loaded() assertions were added to the (re)load_printers()
functions, to ensure the caller had called pcap_cache_reload() prior to
reloading printer shares.
The problem is, pcap_cache_loaded() returns false if the the pcap_cache
contains no printer entries. i.e. pcap_cache_reload() has run but not
detected any printers.
Remove these assertions, correct call ordering is already enforced.
Signed-off-by: Günther Deschner <gd@samba.org>
The last 3 patches address bug #7836 (A newly added printer isn't visbile to
clients).
***************************************************************************/
void load_printers(void)
{
- SMB_ASSERT(pcap_cache_loaded());
-
add_auto_printers();
/* load all printcap printers */
int pnum = lp_servicenumber(PRINTERS_NAME);
const char *pname;
- SMB_ASSERT(pcap_cache_loaded());
-
DEBUG(10, ("reloading printer services from pcap cache\n"));
for (snum = 0; snum < n_services; snum++) {
/* avoid removing PRINTERS_NAME or non-autoloaded printers */