summaryrefslogtreecommitdiff
path: root/source3/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
commit8e0e3196743c3d6aa9cd0cc9f5cece49b2e2323c (patch)
tree2a48161055e7f5fa5a03218a15b3b0048f707a82 /source3/rpc_client
parent92a54ac60c6416e3454ebb495adb4b89f1d0a3f1 (diff)
downloadsamba-8e0e3196743c3d6aa9cd0cc9f5cece49b2e2323c.tar.gz
samba-8e0e3196743c3d6aa9cd0cc9f5cece49b2e2323c.tar.bz2
samba-8e0e3196743c3d6aa9cd0cc9f5cece49b2e2323c.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 (This used to be commit 880e81161640cd38540b06d982c592cbada51d40)
Diffstat (limited to 'source3/rpc_client')
-rw-r--r--source3/rpc_client/cli_spoolss.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/rpc_client/cli_spoolss.c b/source3/rpc_client/cli_spoolss.c
index 7417e0c0fc..ed5c66ebfc 100644
--- a/source3/rpc_client/cli_spoolss.c
+++ b/source3/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)));
+ }
}
}