1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-29 21:47:30 +03:00

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)
This commit is contained in:
Gerald Carter 2000-07-18 05:02:16 +00:00
parent 9665d3fc7b
commit 2089176e34

View File

@ -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;