s3-spoolss: Fix Bug #6568: _spoolss_GetPrintProcessorDirectory() implementation.
authorGünther Deschner <gd@samba.org>
Tue, 4 Aug 2009 10:21:49 +0000 (12:21 +0200)
committerKarolin Seeger <kseeger@samba.org>
Wed, 5 Aug 2009 09:47:26 +0000 (11:47 +0200)
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
(cherry picked from commit 74454cc731f202361f1dce47fa850810bfeb36c8)

source3/rpc_server/srv_spoolss_nt.c

index 855aa30a990c7544e2a335c4b9ca52edfe5937df..8170680c68889cc0fa0e1c58067cf1283703a063 100644 (file)
@@ -9598,8 +9598,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)) {