1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

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 61f14cdcbd)
This commit is contained in:
Gerald Carter 2005-07-11 18:37:15 +00:00 committed by Gerald (Jerry) Carter
parent e574081ad9
commit 1cb4334fb9

View File

@ -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));