+ if(gdb_init() != 0) {
+ com_err(whoami, 0, "GDB initialization failed.");
+ exit(1);
+ }
+ gdb_debug(0); /* this can be patched, if necessary, to enable */
+ /* GDB level debugging .. */
+ krb_realm = malloc(REALM_SZ);
+ get_krbrlm(krb_realm, 1);
+
+ /*
+ * Database initialization.
+ */
+
+ if ((status = sms_open_database()) != 0) {
+ com_err(whoami, status, " when trying to open database.");
+ exit(1);
+ }
+
+ sanity_check_queries();
+ sanity_check_database();