summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-04-08 16:20:46 +0200
committerGünther Deschner <gd@samba.org>2010-04-08 16:21:40 +0200
commit84f3eeeca312cc9182785bb7c3b0e1c4db8b3480 (patch)
tree2f3ad7559d316fb4945e9e311e2c4c680ed97240 /source3
parent1c4c4dd7e044f20c3de623b189a5c0d65b0a67b4 (diff)
downloadsamba-84f3eeeca312cc9182785bb7c3b0e1c4db8b3480.tar.gz
samba-84f3eeeca312cc9182785bb7c3b0e1c4db8b3480.tar.bz2
samba-84f3eeeca312cc9182785bb7c3b0e1c4db8b3480.zip
s3-registry: fix fill_in_printer_values() for datatype and printprocessor.
It is wise and good to enforce RAW and winprint, but we need to be consistent with spoolss (and enforce it there). Found by torture test. Guenther
Diffstat (limited to 'source3')
-rw-r--r--source3/registry/reg_backend_printing.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/registry/reg_backend_printing.c b/source3/registry/reg_backend_printing.c
index 278ad4fa46..26227b547e 100644
--- a/source3/registry/reg_backend_printing.c
+++ b/source3/registry/reg_backend_printing.c
@@ -414,8 +414,8 @@ static void fill_in_printer_values(NT_PRINTER_INFO_LEVEL_2 *info2, struct regval
regval_ctr_addvalue_sz(values, "Share Name", info2->sharename);
regval_ctr_addvalue_sz(values, "Printer Driver", info2->drivername);
regval_ctr_addvalue_sz(values, "Separator File", info2->sepfile);
- regval_ctr_addvalue_sz(values, "Print Processor", "WinPrint");
- regval_ctr_addvalue_sz(values, "Datatype", "RAW");
+ regval_ctr_addvalue_sz(values, "Print Processor", info2->printprocessor);
+ regval_ctr_addvalue_sz(values, "Datatype", info2->datatype);
/* stream the device mode */