summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-07-17 17:36:26 -0700
committerJeremy Allison <jra@samba.org>2009-07-17 17:36:26 -0700
commit6a9e0039100b57f9626e87defec6720c476b9789 (patch)
tree614ea76e56332e7c647514997195b6098d0e326d /source3/smbd
parent33251da8611ddc98c3ae73d62601218e5b784e63 (diff)
downloadsamba-6a9e0039100b57f9626e87defec6720c476b9789.tar.gz
samba-6a9e0039100b57f9626e87defec6720c476b9789.tar.bz2
samba-6a9e0039100b57f9626e87defec6720c476b9789.zip
Fix bug #6564 - SetPrinter fails (panics) as non root.
Missing become_root()/unbecome_root() around reload_services. Jeremy.
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/server.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index a1dec0327c..4b1c803d75 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -94,6 +94,7 @@ static void smb_conf_updated(struct messaging_context *msg,
{
DEBUG(10,("smb_conf_updated: Got message saying smb.conf was "
"updated. Reloading.\n"));
+ change_to_root_user();
reload_services(False);
}