s3-printing: update parent smbd pcap cache
authorDavid Disseldorp <ddiss@suse.de>
Mon, 10 Jan 2011 13:08:07 +0000 (14:08 +0100)
committerKarolin Seeger <kseeger@samba.org>
Sat, 15 Jan 2011 16:19:24 +0000 (17:19 +0100)
commit2c2ce9caead5a13edb582313b7d36c7eb12a09fb
tree9caf04a15c881968edafca1f5215923e26c149a5
parent9bc0cd243ac66126d42905dd8710d078094e0cd7
s3-printing: update parent smbd pcap cache

If a client connects to a samba share and while connected a printer is
added, the client will see the new printer share after a maximum of
'printcap cache time' seconds.

smbd's forked for new client connections inherit printcap information
from the parent (listener) smbd, which does not perform updates on
printcap cache time expiry. Therefore newly connected clients may
initially be presented with stale printer shares.

Add a housekeeping function to the parent smbd to ensure newly connected
clients see up to date printer shares.

The last 2 patches address bug #7836 (A newly added printer isn't visbile to
clients).
source3/include/local.h
source3/smbd/process.c
source3/smbd/server.c