 +	 * There should be only folders right under InputDevices/.
 +	 * So we are interested only in the skeleton.
 +	 */
-+	kdbGetChildKeys(localRootKey, inputDevs,
++	kdbGetChildKeys(handle, localRootKey, inputDevs,
 +		KDB_O_DIR | KDB_O_NOVALUE | KDB_O_SORT);
 +
 +	xf86conffree(localRootKey);

+
+int
+convert(int direction,char *xc,char *rk) {
+	const char *filename;
+	XF86ConfigPtr conf;
+	KeySet *ks=0;

+			int ret; 
+			
+			/* Really commit to the Key database */
+			kdbOpen(&handle);
+			fprintf(stderr,"Writing X.org configuration keys to %s\n",rootkey);
+			ksRewind(ks);
+			ret=kdbSetKeys(handle, ks);
+			if (ret != 0) {
+				Key *problem;
+				char error[500];
