summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-03-14 01:48:59 +0000
committerTim Potter <tpot@samba.org>2002-03-14 01:48:59 +0000
commit8975d3ef70916bc13c8186c92e66260abc91aaaa (patch)
treef97b08745ae568cc29956ab8b7ed5c05af23b8e6 /source3/printing
parentd6d9e385cc6ce61de9fec572209134be728cf1b0 (diff)
downloadsamba-8975d3ef70916bc13c8186c92e66260abc91aaaa.tar.gz
samba-8975d3ef70916bc13c8186c92e66260abc91aaaa.tar.bz2
samba-8975d3ef70916bc13c8186c92e66260abc91aaaa.zip
Backed out enumprinters stuff - leave it for another day.
(This used to be commit d7efc5dd3dd712e7138b5c79eea9756125757175)
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/nt_printing.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c
index 7826212ae9..43667a674d 100644
--- a/source3/printing/nt_printing.c
+++ b/source3/printing/nt_printing.c
@@ -2607,7 +2607,9 @@ static WERROR get_a_printer_2(NT_PRINTER_INFO_LEVEL_2 **info_ptr, fstring sharen
/* Restore the stripped strings. */
slprintf(info.servername, sizeof(info.servername)-1, "\\\\%s",
get_called_name());
- strupper(info.servername);
+ slprintf(printername, sizeof(printername)-1, "\\\\%s\\%s", get_called_name(),
+ info.printername);
+ fstrcpy(info.printername, printername);
len += unpack_devicemode(&info.devmode,dbuf.dptr+len, dbuf.dsize-len);