svn commit: samba r6914 - in trunk/source/registry: .

jerry at samba.org jerry at samba.org
Thu May 19 20:46:24 GMT 2005


Author: jerry
Date: 2005-05-19 20:46:24 +0000 (Thu, 19 May 2005)
New Revision: 6914

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=6914

Log:
printmig.exe can now successfully backup print drivers
from a Samba box and restore them to a local Windows 
2000 server.

The printer regoistry objects are not quite correct
yet, but I think I know what to do there.

And then I have to get RegRestoreKey() working 
for migrations from Windows print servers to Samba.
Or even from one Samba box to another.



Modified:
   trunk/source/registry/reg_printing.c


Changeset:
Modified: trunk/source/registry/reg_printing.c
===================================================================
--- trunk/source/registry/reg_printing.c	2005-05-19 20:10:24 UTC (rev 6913)
+++ trunk/source/registry/reg_printing.c	2005-05-19 20:46:24 UTC (rev 6914)
@@ -254,7 +254,7 @@
 
 	
 	if ( !subkeypath ) {
-		num_drivers = get_ntdrivers( &drivers, environments[env_index], atoi(base) );
+		num_drivers = get_ntdrivers( &drivers, environments[env_index], version );
 		for ( i=0; i<num_drivers; i++ )
 			regsubkey_ctr_addkey( subkeys, drivers[i] );
 			
@@ -351,7 +351,7 @@
 	keystr = subkeypath;
 	reg_split_path( keystr, &base, &subkeypath );
 		
-	version = atoi( base );
+	version = atoi(&base[strlen(base)-1]);
 
 	/* printer driver name */
 	



More information about the samba-cvs mailing list