The Samba-Bugzilla – Attachment 166 Details for
Bug 514
Can't use rpcclient to upload Win2k (version 3) printer drivers
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
samba-adddriver-version.patch
samba-adddriver-version.patch (text/plain), 3.02 KB, created by
James Henstridge
on 2003-09-25 23:28:53 UTC
(
hide
)
Description:
samba-adddriver-version.patch
Filename:
MIME Type:
Creator:
James Henstridge
Created:
2003-09-25 23:28:53 UTC
Size:
3.02 KB
patch
obsolete
>--- samba-3.0.0/source/rpcclient/cmd_spoolss.c.old 2003-08-29 05:42:45.000000000 +0800 >+++ samba-3.0.0/source/rpcclient/cmd_spoolss.c 2003-09-26 14:05:43.000000000 +0800 >@@ -1264,16 +1264,17 @@ static WERROR cmd_spoolss_addprinterdriv > DRIVER_INFO_3 info3; > const char *arch; > fstring driver_name; > > /* parse the command arguements */ >- if (argc != 3) >+ if (argc != 3 && argc != 4) > { > printf ("Usage: %s <Environment>\\\n", argv[0]); > printf ("\t<Long Printer Name>:<Driver File Name>:<Data File Name>:\\\n"); > printf ("\t<Config File Name>:<Help File Name>:<Language Monitor Name>:\\\n"); >- printf ("\t<Default Data Type>:<Comma Separated list of Files>\n"); >+ printf ("\t<Default Data Type>:<Comma Separated list of Files>\\\n"); >+ printf ("\t[version]\n"); > > return WERR_OK; > } > > /* Fill in the DRIVER_INFO_3 struct */ >@@ -1290,10 +1291,18 @@ static WERROR cmd_spoolss_addprinterdriv > { > printf ("Error Invalid parameter list - %s.\n", argv[2]); > return WERR_INVALID_PARAM; > } > >+ /* if printer driver version specified, override the default version >+ * used by the architecture. This allows installation of Windows >+ * 2000 (version 3) printer drivers. */ >+ if (argc == 4) >+ { >+ info3.version = atoi(argv[3]); >+ } >+ > > ctr.info3 = &info3; > result = cli_spoolss_addprinterdriver (cli, mem_ctx, level, &ctr); > > if (W_ERROR_IS_OK(result)) { >--- samba-3.0.0/docs/docbook/manpages/rpcclient.1.xml.old 2003-09-26 14:12:47.000000000 +0800 >+++ samba-3.0.0/docs/docbook/manpages/rpcclient.1.xml 2003-09-26 14:17:25.000000000 +0800 >@@ -209,11 +209,11 @@ > > <refsect2> > <title>SPOOLSS</title> > > <variablelist> >- <varlistentry><term>adddriver <arch> <config></term> >+ <varlistentry><term>adddriver <arch> <config> [<version>]</term> > <listitem><para> > Execute an AddPrinterDriver() RPC to install the printer driver > information on the server. Note that the driver files should > already exist in the directory returned by > <command>getdriverdir</command>. Possible values for >@@ -238,11 +238,17 @@ Comma Separated list of Files > <para>Samba does not need to support the concept of Print Monitors > since these only apply to local printers whose driver can make > use of a bi-directional link for communication. This field should > be "NULL". On a remote NT print server, the Print Monitor for a > driver must already be installed prior to adding the driver or >- else the RPC will fail. </para></listitem></varlistentry> >+ else the RPC will fail. </para> >+ >+ <para>The <parameter>version</parameter> parameter lets you >+ specify the printer driver version number. If omitted, the >+ default driver version for the specified architecture will >+ be used. This option can be used to upload Windows 2000 >+ (version 3) printer drivers.</para></listitem></varlistentry> > > <varlistentry><term>addprinter <printername> > <sharename> <drivername> <port></term> > <listitem><para> > Add a printer on the remote server. This printer
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 514
: 166