it never amazes me when some new things crawls out of the windows
authorGerald Carter <jerry@samba.org>
Sat, 23 Aug 2003 03:34:24 +0000 (03:34 +0000)
committerGerald Carter <jerry@samba.org>
Sat, 23 Aug 2003 03:34:24 +0000 (03:34 +0000)
commit983b4e7011174961748eb5d3011ec59b25d0917e
tree7d18d852e5938b044b6e295fec446cad62ca9ff8
parentdac11b890b3e81f8849340e582b7f397a612baba
it never amazes me when some new things crawls out of the windows
spooler. :-(

When installing the Adobe PS driver onto a Samba printer via cupsaddsmb,
I noticed a WIN2k client sending DeletePrinterData("DependentFiles")
pver and over.  I also noticed that we never checked to see if the
value was valid.  No now we do and return WERR_BADFILE which I think
is correct.

Next, I noticed that we never wrote the updated printer out to disk
after a succesfully DeletePrinterData[Ex]().

Finally, I found a driver (Canon BJC 1000 using the Adobe PS drivers
and foomatic PPD file) that was destroying the device name string
in the devmode.  So now get_a_printer_2() always writes out the
device name in \\server\share form.

I think these changes might fix bug 294.
(This used to be commit deb25780874b66e68ac597db24fbc50e7f7458b5)
source3/printing/nt_printing.c
source3/rpc_server/srv_spoolss.c
source3/rpc_server/srv_spoolss_nt.c