From 47f3394bf715feb91662e0128da1d572e6c1e57f Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Fri, 30 Jun 2006 21:07:25 +0000 Subject: [PATCH] * 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 --- src/kadmin/dbutil/dump.c | 10 ++++++++++ 1 file changed, 10 insertions(+) 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, -- 2.26.2