summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-08-04 12:21:49 +0200
committerGünther Deschner <gd@samba.org>2009-08-04 18:50:59 +0200
commit74454cc731f202361f1dce47fa850810bfeb36c8 (patch)
tree61ee23867f6af8bb59c1f1786419cbddbe546d3d /source3
parent0e87f07fc0190e5d5a167e356db521b9123ae049 (diff)
downloadsamba-74454cc731f202361f1dce47fa850810bfeb36c8.tar.gz
samba-74454cc731f202361f1dce47fa850810bfeb36c8.tar.bz2
samba-74454cc731f202361f1dce47fa850810bfeb36c8.zip
s3-spoolss: Fix Bug #6568: _spoolss_GetPrintProcessorDirectory() implementation.
We should always return a local path so that users are not forced to setup a [prnproc$] share on the server. This restores pre-3.4.0 spoolss behaviour. Guenther
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index ee074745b8..e535f26a83 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -9685,8 +9685,12 @@ WERROR _spoolss_GetPrintProcessorDirectory(pipes_struct *p,
/* r->in.level is ignored */
+ /* We always should reply with a local print processor directory so that
+ * users are not forced to have a [prnproc$] share on the Samba spoolss
+ * server - Guenther */
+
result = getprintprocessordirectory_level_1(p->mem_ctx,
- r->in.server,
+ NULL, /* r->in.server */
r->in.environment,
&r->out.info->info1);
if (!W_ERROR_IS_OK(result)) {