summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid O'Neill <dmo@samba.org>2001-01-16 18:17:55 +0000
committerDavid O'Neill <dmo@samba.org>2001-01-16 18:17:55 +0000
commitb85d1ecc2661cd2db8e7992dc2aa587a24392bb1 (patch)
treee72ae66cdb086c121d04e6b85499e00d4e5d6208
parentb3ccabeece7b87b798e2292542355939e7dc1faf (diff)
downloadsamba-b85d1ecc2661cd2db8e7992dc2aa587a24392bb1.tar.gz
samba-b85d1ecc2661cd2db8e7992dc2aa587a24392bb1.tar.bz2
samba-b85d1ecc2661cd2db8e7992dc2aa587a24392bb1.zip
Changes from APPLIANCE_HEAD:
source/param/loadparm.c - changed lp_add_printer() to convert szPrintername and comment from unix to DOS codepage. (This used to be commit 6a1f55b3255f216a5ddc73f94c6cb5a2490c3bbb)
-rw-r--r--source3/param/loadparm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 9a6f5e946d..57e8f17189 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -1834,7 +1834,9 @@ BOOL lp_add_printer(char *pszPrintername, int iDefaultService)
/* the printer name is set to the service name. */
string_set(&iSERVICE(i).szPrintername, pszPrintername);
+ unix_to_dos(iSERVICE(i).szPrintername, True);
string_set(&iSERVICE(i).comment, comment);
+ unix_to_dos(iSERVICE(i).comment, True);
iSERVICE(i).bBrowseable = sDefault.bBrowseable;
/* Printers cannot be read_only. */
iSERVICE(i).bRead_only = False;