diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-12-14 13:25:20 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-12-15 11:11:24 +0100 |
commit | 03455519e70253cb86007ac5a8960999e9aa5fa4 (patch) | |
tree | 0203cadb5d8048e82682a42e913520d0de033a40 /source3/rpc_server/spoolss | |
parent | 5061dd26d314baf38c7e8b3f8e495579baba49de (diff) | |
download | samba-03455519e70253cb86007ac5a8960999e9aa5fa4.tar.gz samba-03455519e70253cb86007ac5a8960999e9aa5fa4.tar.bz2 samba-03455519e70253cb86007ac5a8960999e9aa5fa4.zip |
s3:smbd: pass smbd_server_connection and a snumused function pointer to reload_services()
metze
Diffstat (limited to 'source3/rpc_server/spoolss')
-rw-r--r-- | source3/rpc_server/spoolss/srv_spoolss_nt.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/source3/rpc_server/spoolss/srv_spoolss_nt.c b/source3/rpc_server/spoolss/srv_spoolss_nt.c index 491d96566a..87df5659c7 100644 --- a/source3/rpc_server/spoolss/srv_spoolss_nt.c +++ b/source3/rpc_server/spoolss/srv_spoolss_nt.c @@ -6202,6 +6202,16 @@ static WERROR add_port_hook(TALLOC_CTX *ctx, struct security_token *token, const /**************************************************************************** ****************************************************************************/ +static bool spoolss_conn_snum_used(struct smbd_server_connection *sconn, + int snum) +{ + /* + * As we do not know if we are embedded in the file server process + * or not, we have to pretend that all shares are in use. + */ + return true; +} + static bool add_printer_hook(TALLOC_CTX *ctx, struct security_token *token, struct spoolss_SetPrinterInfo2 *info2, const char *remote_machine, @@ -6260,7 +6270,7 @@ static bool add_printer_hook(TALLOC_CTX *ctx, struct security_token *token, /* reload our services immediately */ become_root(); - reload_services(msg_ctx, -1, false); + reload_services(NULL, spoolss_conn_snum_used, false); unbecome_root(); numlines = 0; |