summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2004-11-12 17:39:32 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:53:15 -0500
commite51451d4ba84b5cd9b07716a8a058ba0e54d974c (patch)
tree3d31d0ad58059de1a2cdb1e9db16d022fae05f47 /source3
parentf3ea955b70eab3df09cb95eee9c5053d3c44e858 (diff)
downloadsamba-e51451d4ba84b5cd9b07716a8a058ba0e54d974c.tar.gz
samba-e51451d4ba84b5cd9b07716a8a058ba0e54d974c.tar.bz2
samba-e51451d4ba84b5cd9b07716a8a058ba0e54d974c.zip
r3708: BUG 1838: patch from Gavrie Philipson <gavrie@disksites.com> to remove stale printers when reloading after a sighup
(This used to be commit bcb9105c5488a97944d2dfee8681d662e9c9b818)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/server.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index 82da85767b..e40d1f8bc7 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -482,9 +482,10 @@ BOOL reload_services(BOOL test)
return(True);
lp_killunused(conn_snum_used);
-
+
ret = lp_load(dyn_CONFIGFILE, False, False, True);
+ remove_stale_printers();
load_printers();
/* perhaps the config filename is now set */