From df6a57da83cc27262c7a590c7263a8d637e2ea9b Mon Sep 17 00:00:00 2001 From: Barry Jaspan Date: Tue, 8 Oct 1996 21:10:58 +0000 Subject: [PATCH] * adb_policy.c (osa_adb_rename_policy_db): rename osa_adb_rename_policy to *_db git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9152 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/kadm5/srv/ChangeLog | 3 +++ src/lib/kadm5/srv/adb_policy.c | 20 ++++++++++---------- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/src/lib/kadm5/srv/ChangeLog b/src/lib/kadm5/srv/ChangeLog index 3bd2f388f..0132ec9f2 100644 --- a/src/lib/kadm5/srv/ChangeLog +++ b/src/lib/kadm5/srv/ChangeLog @@ -1,5 +1,8 @@ Tue Oct 8 13:33:48 1996 Barry Jaspan + * adb_policy.c (osa_adb_rename_policy_db): rename + osa_adb_rename_policy to *_db + * adb_openclose.c, adb_policy.c: implement database renaming; also, only create a db lockfile after the database has been successfully created [krb5-admin/62] diff --git a/src/lib/kadm5/srv/adb_policy.c b/src/lib/kadm5/srv/adb_policy.c index 5ee70fafd..0971f447b 100644 --- a/src/lib/kadm5/srv/adb_policy.c +++ b/src/lib/kadm5/srv/adb_policy.c @@ -42,6 +42,16 @@ osa_adb_ret_t osa_adb_create_policy_db(kadm5_config_params *params) OSA_ADB_POLICY_DB_MAGIC); } +osa_adb_ret_t osa_adb_rename_policy_db(kadm5_config_params *fromparams, + kadm5_config_params *toparams) +{ + return osa_adb_rename_db(fromparams->admin_dbname, + fromparams->admin_lockfile, + toparams->admin_dbname, + toparams->admin_lockfile, + OSA_ADB_POLICY_DB_MAGIC); +} + osa_adb_ret_t osa_adb_destroy_policy_db(kadm5_config_params *params) { return osa_adb_destroy_db(params->admin_dbname, @@ -62,16 +72,6 @@ osa_adb_ret_t osa_adb_close_policy(osa_adb_princ_t db) return osa_adb_fini_db(db, OSA_ADB_POLICY_DB_MAGIC); } -osa_adb_ret_t osa_adb_rename_policy(kadm5_config_params *fromparams, - kadm5_config_params *toparams) -{ - return osa_adb_rename_db(fromparams->admin_dbname, - fromparams->admin_lockfile, - toparams->admin_dbname, - toparams->admin_lockfile, - OSA_ADB_POLICY_DB_MAGIC); -} - /* * Function: osa_adb_create_policy * -- 2.26.2