From: Ken Raeburn Date: Fri, 30 Jun 2006 21:07:25 +0000 (+0000) Subject: * dump.c (load_db): Call krb5_db_promote instead of krb5_db_fini X-Git-Tag: krb5-1.6-alpha1~222 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=47f3394bf715feb91662e0128da1d572e6c1e57f;p=krb5.git * dump.c (load_db): Call krb5_db_promote instead of krb5_db_fini ticket: 3964 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18296 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kadmin/dbutil/dump.c b/src/kadmin/dbutil/dump.c index f491ae70f..5df6e73c5 100644 --- a/src/kadmin/dbutil/dump.c +++ b/src/kadmin/dbutil/dump.c @@ -2303,14 +2303,24 @@ load_db(argc, argv) exit_status++; } +#if 0 if ((kret = krb5_db_fini(kcontext))) { fprintf(stderr, close_err_fmt, programname, error_message(kret)); exit_status++; } +#endif /* close policy db below */ + if (exit_status == 0 + && !update + && (kret = krb5_db_promote(kcontext, db5util_db_args))) { + fprintf(stderr, "%s: cannot make newly loaded database live (%s)\n", + programname, error_message(kret)); + exit_status++; + } + error: /* * If not an update: if there was an error, destroy the temp database,