int optchar;
krb5_error_code retval;
- char *dbname = 0;
+ char *dbname = DEFAULT_KDB_FILE;
char *realm = 0;
char *mkey_name = 0;
char *mkey_fullname;
}
krb5_use_cstype(&master_encblock, etype);
- if (!dbname)
- dbname = DEFAULT_DBM_FILE; /* XXX? */
-
retval = krb5_db_set_name(dbname);
if (!retval) retval = EEXIST;
{
extern char *optarg;
int optchar;
- char *dbname = 0;
+ char *dbname = DEFAULT_KDB_FILE;
char buf[5];
char dbfilename[MAXPATHLEN];
krb5_error_code retval;
/*NOTREACHED*/
}
}
- if (!dbname)
- dbname = DEFAULT_DBM_FILE; /* XXX? */
-
printf("Deleting KDC database stored in '%s', are you sure?\n", dbname);
printf("(type 'yes' to confirm)? ");
if ((fgets(buf, sizeof(buf), stdin) != NULL) && /* typed something */
#include <krb5/ext-proto.h>
#include <krb5/los-proto.h>
#include <krb5/sysincl.h>
+#include <krb5/osconf.h>
#include <com_err.h>
#include <stdio.h>
extern char *optarg;
int optchar;
krb5_error_code retval;
- char *dbname = 0;
+ char *dbname = DEFAULT_KDB_FILE;
char *realm = 0;
char *mkey_name = 0;
char *mkey_fullname;
krb5_use_cstype(&master_encblock, etype);
- if (!dbname)
- dbname = DEFAULT_DBM_FILE; /* XXX? */
-
if (retval = krb5_db_set_name(dbname)) {
com_err(argv[0], retval, "while setting active database to '%s'",
dbname);