aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Yu <tlyu@mit.edu>2011-03-01 22:21:01 +0000
committerTom Yu <tlyu@mit.edu>2011-03-01 22:21:01 +0000
commita4227a7e08059606172a0ab607bee915355331c0 (patch)
tree3f710f3b8e455a859caaa57fd67c29ab8fdd01dd
parentb33f8f36d9f67d786f96486cfff830ec89e96412 (diff)
downloadkrb5-a4227a7e08059606172a0ab607bee915355331c0.zip
krb5-a4227a7e08059606172a0ab607bee915355331c0.tar.gz
krb5-a4227a7e08059606172a0ab607bee915355331c0.tar.bz2
pull up r24667 from trunk
------------------------------------------------------------------------ r24667 | ghudson | 2011-02-26 21:35:04 -0500 (Sat, 26 Feb 2011) | 8 lines ticket: 6875 tags: pullup target_version: 1.9.1 Make sure ulog_map() is invoked whenever we open the database in kdb5_util. Fixes all of the master key rollover commands in the presence of iprop. Reported by kacarstensen@csupomona.edu. ticket: 6875 version_fixed: 1.9.1 git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-9@24674 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r--src/kadmin/dbutil/dump.c8
-rw-r--r--src/kadmin/dbutil/kdb5_util.c11
2 files changed, 11 insertions, 8 deletions
diff --git a/src/kadmin/dbutil/dump.c b/src/kadmin/dbutil/dump.c
index caff137..6d4e6bb 100644
--- a/src/kadmin/dbutil/dump.c
+++ b/src/kadmin/dbutil/dump.c
@@ -1283,14 +1283,6 @@ dump_db(argc, argv)
fprintf(arglist.ofile, "%s", dump->header);
if (dump_sno) {
- if (ulog_map(util_context, global_params.iprop_logfile,
- global_params.iprop_ulogsize, FKCOMMAND, db_args)) {
- fprintf(stderr,
- _("%s: Could not map log\n"), progname);
- exit_status++;
- goto unlock_and_return;
- }
-
/*
* We grab the lock twice (once again in the iterator call),
* but that's ok since the lock func handles incr locks held.
diff --git a/src/kadmin/dbutil/kdb5_util.c b/src/kadmin/dbutil/kdb5_util.c
index 6c8e364..11b1a55 100644
--- a/src/kadmin/dbutil/kdb5_util.c
+++ b/src/kadmin/dbutil/kdb5_util.c
@@ -499,6 +499,17 @@ static int open_db_and_mkey()
return(1);
}
+ if (global_params.iprop_enabled) {
+ if (ulog_map(util_context, global_params.iprop_logfile,
+ global_params.iprop_ulogsize, FKCOMMAND,
+ db5util_db_args)) {
+ fprintf(stderr, _("%s: Could not map log\n"),
+ progname);
+ exit_status++;
+ return(1);
+ }
+ }
+
valid_master_key = 1;
dbactive = TRUE;
return 0;