summaryrefslogtreecommitdiffstats
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
commit6a1f55b3255f216a5ddc73f94c6cb5a2490c3bbb (patch)
tree7c455e24619a7667ed914ee017dfc10d798084c2
parent24c78fdf5fb940b32724474241c464206b83be2f (diff)
downloadsamba-6a1f55b3255f216a5ddc73f94c6cb5a2490c3bbb.tar.gz
samba-6a1f55b3255f216a5ddc73f94c6cb5a2490c3bbb.tar.xz
samba-6a1f55b3255f216a5ddc73f94c6cb5a2490c3bbb.zip
Changes from APPLIANCE_HEAD:
source/param/loadparm.c - changed lp_add_printer() to convert szPrintername and comment from unix to DOS codepage.
-rw-r--r--source/param/loadparm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/param/loadparm.c b/source/param/loadparm.c
index 9a6f5e946d5..57e8f171898 100644
--- a/source/param/loadparm.c
+++ b/source/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;