1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-01 04:58:35 +03:00

some printer parameters are getting corrupted, possibly by the client

possibly by smbd. Reset them so printing at least works while I try to
figure out what is going on.
(This used to be commit 70476d6767a571460fa375fb1dae884df77ca143)
This commit is contained in:
Andrew Tridgell 2000-06-04 04:17:59 +00:00
parent 0090b4ee11
commit 7ed09de569

View File

@ -667,8 +667,8 @@ static uint32 add_a_printer_2(NT_PRINTER_INFO_LEVEL_2 *info)
safe_free(buf);
DEBUG(8,("packed printer [%s] with form [%s] len=%d\n",
info->portname, info->devmode->formname, len));
DEBUG(8,("packed printer [%s] with printprocessor [%s] parameters=[%s] len=%d\n",
info->portname, info->printprocessor, info->parameters, len));
return ret;
}
@ -1081,9 +1081,19 @@ static uint32 get_a_printer_2(NT_PRINTER_INFO_LEVEL_2 **info_ptr, fstring sharen
nt_printing_getsec(sharename, &info.secdesc_buf);
/* the following should not be necessary - why are these values
getting corrupted? */
fstrcpy(info.printprocessor, "winprint");
fstrcpy(info.datatype, "RAW");
fstrcpy(info.parameters,"");
safe_free(dbuf.dptr);
*info_ptr=memdup(&info, sizeof(info));
DEBUG(9,("Unpacked printprocessor for [%s] of [%s]\n",
sharename, info.printprocessor));
return 0;
}