 +  int useinittab=0;
 +  char sequence[500]; /* a big enough buffer */
 +  char *seqcursor=sequence;
++  KDBHandle handle;
 +
 +  /* we really need it all zeroed to make get_part() work correctly */
 +  memset(sequence,0,sizeof(sequence));

+        * so default to old /etc/inittab
+        */
+       useinittab=1; /* was 0 by default */
+       kdbClose(); /* will not use the Keys database anymore */
+  }
+
+  if (useinittab)

+  /*
+   *   Start affairs with Key database
+   */
+  kdbOpen(&handle);
+
+  /*
+   * Since the key database is not sequential
