summaryrefslogtreecommitdiffstats
path: root/source/printing
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-06-06 01:34:20 +0000
committerJeremy Allison <jra@samba.org>2000-06-06 01:34:20 +0000
commit0d681ea252e0cf7fdf57d316d2bfe7caa9b4fbf5 (patch)
treed649aaad0fa3b26b2f45279055c0a24a7eefa964 /source/printing
parent03cd4aa1443acd958593f37c61ff9c90a43c660b (diff)
downloadsamba-0d681ea252e0cf7fdf57d316d2bfe7caa9b4fbf5.tar.gz
samba-0d681ea252e0cf7fdf57d316d2bfe7caa9b4fbf5.tar.xz
samba-0d681ea252e0cf7fdf57d316d2bfe7caa9b4fbf5.zip
Create elements in default, not in read.
Jeremy.
Diffstat (limited to 'source/printing')
-rw-r--r--source/printing/nt_printing.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/printing/nt_printing.c b/source/printing/nt_printing.c
index 0f778841129..a4620941114 100644
--- a/source/printing/nt_printing.c
+++ b/source/printing/nt_printing.c
@@ -1010,6 +1010,13 @@ static uint32 get_a_printer_2_default(NT_PRINTER_INFO_LEVEL_2 **info_ptr, fstrin
fstrcpy(info.printprocessor, "winprint");
fstrcpy(info.datatype, "RAW");
+ info.attributes = PRINTER_ATTRIBUTE_SHARED \
+ | PRINTER_ATTRIBUTE_LOCAL \
+ | PRINTER_ATTRIBUTE_RAW_ONLY ; /* attributes */
+
+ info.starttime = 0; /* Minutes since 12:00am GMT */
+ info.untiltime = 1440; /* Minutes since 12:00am GMT */
+
if ((info.devmode = construct_nt_devicemode()) == NULL)
goto fail;
@@ -1076,6 +1083,8 @@ static uint32 get_a_printer_2(NT_PRINTER_INFO_LEVEL_2 **info_ptr, fstring sharen
info.datatype,
info.parameters);
+ info.attributes |= PRINTER_ATTRIBUTE_RAW_ONLY; /* Samba has to have raw drivers. */
+
len += unpack_devicemode(&info.devmode,dbuf.dptr+len, dbuf.dsize-len);
len += unpack_specifics(&info.specific,dbuf.dptr+len, dbuf.dsize-len);