summaryrefslogtreecommitdiffstats
path: root/source/rpc_client/cli_spoolss.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-08-19 16:56:53 +0000
committerGerald Carter <jerry@samba.org>2003-08-19 16:56:53 +0000
commit5be51515680da910b623f486108d91f9ea914bd2 (patch)
tree20ae4838149ed4d4e53ce2736744c5f57bb670bc /source/rpc_client/cli_spoolss.c
parent04d7f0bba6ef110c1c7d2e98b816ab5b9f234d80 (diff)
downloadsamba-5be51515680da910b623f486108d91f9ea914bd2.tar.gz
samba-5be51515680da910b623f486108d91f9ea914bd2.tar.xz
samba-5be51515680da910b623f486108d91f9ea914bd2.zip
working on fix for BUG #294. Not done yet, but this at least clears
up some of the false positives in "rpcclient -c getdriver". Also make sure that we ask for version2 and 3 drivers on x86.
Diffstat (limited to 'source/rpc_client/cli_spoolss.c')
-rw-r--r--source/rpc_client/cli_spoolss.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/rpc_client/cli_spoolss.c b/source/rpc_client/cli_spoolss.c
index f983f63cd72..8f5f2413dee 100644
--- a/source/rpc_client/cli_spoolss.c
+++ b/source/rpc_client/cli_spoolss.c
@@ -720,7 +720,7 @@ WERROR cli_spoolss_getprinterdriver(struct cli_state *cli,
TALLOC_CTX *mem_ctx,
uint32 offered, uint32 *needed,
POLICY_HND *pol, uint32 level,
- const char *env, PRINTER_DRIVER_CTR *ctr)
+ const char *env, int version, PRINTER_DRIVER_CTR *ctr)
{
prs_struct qbuf, rbuf;
SPOOL_Q_GETPRINTERDRIVER2 q;
@@ -742,7 +742,7 @@ WERROR cli_spoolss_getprinterdriver(struct cli_state *cli,
prs_init(&qbuf, MAX_PDU_FRAG_LEN, mem_ctx, MARSHALL);
prs_init(&rbuf, 0, mem_ctx, UNMARSHALL);
- make_spoolss_q_getprinterdriver2(&q, pol, env, level, 2, 2,
+ make_spoolss_q_getprinterdriver2(&q, pol, env, level, version, 2,
&buffer, offered);
/* Marshall data and send request */