summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-07-11 18:37:15 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:58:19 -0500
commit1cb4334fb9d7f7ec930f6a11e730718f903b904c (patch)
treed0d83155a2a027131fdf9112d639bcdb05729972 /source3
parente574081ad93ec5f5eb121436a889f64294fa290d (diff)
downloadsamba-1cb4334fb9d7f7ec930f6a11e730718f903b904c.tar.gz
samba-1cb4334fb9d7f7ec930f6a11e730718f903b904c.tar.bz2
samba-1cb4334fb9d7f7ec930f6a11e730718f903b904c.zip
r8325: * punt....don't normalize the printer name in the RegCreateKey().
Print Migrator now works as long as the addprinter command can handle the name (This used to be commit 61f14cdcbd3b183caf6172d5b60b0888fc4363f7)
Diffstat (limited to 'source3')
-rw-r--r--source3/registry/reg_printing.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/registry/reg_printing.c b/source3/registry/reg_printing.c
index b1fdcea09c..0fd1c488d1 100644
--- a/source3/registry/reg_printing.c
+++ b/source3/registry/reg_printing.c
@@ -256,8 +256,6 @@ static int key_printers_fetch_keys( const char *key, REGSUBKEY_CTR *subkeys )
reg_split_path( printers_key, &printername, &printerdatakey );
- alpha_strcpy( sharename, printername, "", sizeof(sharename)-1);
-
if ( find_service(sharename) == -1
|| !W_ERROR_IS_OK( get_a_printer(NULL, &printer, 2, sharename) ) )
{
@@ -305,7 +303,7 @@ static BOOL add_printers_by_registry( REGSUBKEY_CTR *subkeys )
/* just verify a valied snum for now */
if ( snum == -1 ) {
fstrcpy( info2.printername, printername );
- alpha_strcpy( info2.sharename, printername, "", sizeof(info2.sharename)-1);
+ fstrcpy( info2.sharename, printername );
if ( !add_printer_hook( NULL, &printer ) ) {
DEBUG(0,("add_printers_by_registry: Failed to add printer [%s]\n",
printername));