summaryrefslogtreecommitdiff
path: root/source3/rpcclient/cmd_spoolss.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2000-07-18 05:02:16 +0000
committerGerald Carter <jerry@samba.org>2000-07-18 05:02:16 +0000
commit2089176e346ffdc3b903448e15b58219c055ea4e (patch)
treec53407104882f4127c798ddee098de2014567db7 /source3/rpcclient/cmd_spoolss.c
parent9665d3fc7b5aaa3b514ddd5fb2bc849e25ec494f (diff)
downloadsamba-2089176e346ffdc3b903448e15b58219c055ea4e.tar.gz
samba-2089176e346ffdc3b903448e15b58219c055ea4e.tar.bz2
samba-2089176e346ffdc3b903448e15b58219c055ea4e.zip
Fixed some more SPOOLSS functions. The following
functions work now: - spoolenum - spoolopen - spoolgetprinter - spoolgetprinterdriver Items todo: - track down memory bug with spoolenumdata - fix spoolgetprinterdriverdir - fix spoolgetdata - fix display_job_info_ctr in spooljobs --jerry (This used to be commit 15b35912713557119aba5d0cd59605997d6b5ee9)
Diffstat (limited to 'source3/rpcclient/cmd_spoolss.c')
-rw-r--r--source3/rpcclient/cmd_spoolss.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/source3/rpcclient/cmd_spoolss.c b/source3/rpcclient/cmd_spoolss.c
index 2f0fb77ac1..2dd70bfd67 100644
--- a/source3/rpcclient/cmd_spoolss.c
+++ b/source3/rpcclient/cmd_spoolss.c
@@ -149,7 +149,7 @@ uint32 cmd_spoolss_getprinter(struct client_info *info, int argc, char *argv[])
char *printer_name;
uint32 level;
- if (argc < 2) {
+ if (argc < 1) {
report(out_hnd, "spoolgetprinter <printer name>\n");
return NT_STATUS_INVALID_PARAMETER;
}
@@ -255,7 +255,7 @@ uint32 cmd_spoolss_open_printer_ex(struct client_info *info, int argc, char *arg
BOOL res = True;
- if (argc < 2)
+ if (argc < 1)
{
report(out_hnd, "spoolopen <printer name>\n");
return NT_STATUS_INVALID_PARAMETER;
@@ -277,13 +277,12 @@ uint32 cmd_spoolss_open_printer_ex(struct client_info *info, int argc, char *arg
fstrcat(srv_name, printer_name);
printer_name = srv_name;
}
-/*
+
DEBUG(4,("spoolopen - printer: %s server: %s user: %s\n",
printer_name, station, usr_creds->ntc.user_name));
-*/
res = res ? spoolss_open_printer_ex( printer_name, "", PRINTER_ALL_ACCESS,
- station, "Administrateur", &hnd) : False;
+ station, "Administrator", &hnd) : False;
res = res ? spoolss_closeprinter(&hnd) : False;