database if necessary before renaming [krb5-admin/58]
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9203
dc483132-0cff-0310-8789-
dd5450dbe970
+Fri Oct 18 14:24:12 1996 Barry Jaspan <bjaspan@mit.edu>
+
+ * adb_openclose.c (osa_adb_rename_db): create the destination
+ database if necessary before renaming [krb5-admin/58]
+
Thu Oct 17 16:22:07 1996 Barry Jaspan <bjaspan@mit.edu>
* svr_principal.c: update for new pw_expiration semantics
osa_adb_db_t fromdb, todb;
osa_adb_ret_t ret;
+ /* make sure todb exists */
+ if ((ret = osa_adb_create_db(fileto, lockto, magic)) &&
+ ret != EEXIST)
+ return ret;
+
if (ret = osa_adb_init_db(&fromdb, filefrom, lockfrom, magic))
return ret;
if (ret = osa_adb_init_db(&todb, fileto, lockto, magic)) {