summaryrefslogtreecommitdiffstats
path: root/source/rpc_client
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2000-08-10 04:10:29 +0000
committerGerald Carter <jerry@samba.org>2000-08-10 04:10:29 +0000
commit880e81161640cd38540b06d982c592cbada51d40 (patch)
tree578c97120393e33aa4c0f8ba69947d7db5e2abc7 /source/rpc_client
parent066520979b2b5d967e6e1d77f16185a5fb19dc0c (diff)
downloadsamba-880e81161640cd38540b06d982c592cbada51d40.tar.gz
samba-880e81161640cd38540b06d982c592cbada51d40.tar.xz
samba-880e81161640cd38540b06d982c592cbada51d40.zip
Needed to add the SHARED attribute bit when creating a printer
on a Samba host. Also needed to add an option to pass the share name (printer name) on the command line. And fixed the checking of the return code for spoolss_r_addprinterex() jerry
Diffstat (limited to 'source/rpc_client')
-rw-r--r--source/rpc_client/cli_spoolss.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source/rpc_client/cli_spoolss.c b/source/rpc_client/cli_spoolss.c
index 7417e0c0fc6..ed5c66ebfc3 100644
--- a/source/rpc_client/cli_spoolss.c
+++ b/source/rpc_client/cli_spoolss.c
@@ -839,10 +839,13 @@ uint32 spoolss_addprinterdriver(const char *srv_name, uint32 level, PRINTER_DRIV
{
ZERO_STRUCT(r_o);
- if(!spoolss_io_r_addprinterdriver("", &r_o, &rbuf, 0))
+ if(spoolss_io_r_addprinterdriver("", &r_o, &rbuf, 0))
{
- /* report error code */
- DEBUG(5,("SPOOLSS_ADDPRINTEREX: %s\n", get_nt_error_msg(r_o.status)));
+ if (r_o.status != NT_STATUS_NO_PROBLEMO)
+ {
+ /* report error code */
+ DEBUG(0,("SPOOLSS_ADDPRINTERDRIVER: %s\n", get_nt_error_msg(r_o.status)));
+ }
}
}