* kdb_dbm.c (krb5_dbm_db_rename): rename should not insist that
authorBarry Jaspan <bjaspan@mit.edu>
Mon, 12 Aug 1996 18:13:10 +0000 (18:13 +0000)
committerBarry Jaspan <bjaspan@mit.edu>
Mon, 12 Aug 1996 18:13:10 +0000 (18:13 +0000)
  the target database not already exist

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8930 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/kdb/ChangeLog
src/lib/kdb/kdb_dbm.c

index f579c79937ed09bef047aaa7a44b85052d2fe4b4..efee9da039fe93e3c079ad65c40dc8c84e6e8b1b 100644 (file)
@@ -1,3 +1,8 @@
+Mon Aug 12 14:11:29 1996  Barry Jaspan  <bjaspan@mit.edu>
+
+       * kdb_dbm.c (krb5_dbm_db_rename): rename should not insist that
+       the target database not already exist
+
 Fri Aug  9 15:21:34 1996  Ezra Peisach  <epeisach@dumpster.rose.brandeis.edu>
 
        * Makefile.in (shared): Convert shared:: to shared: so will not
index b9e95e41b187d5d6c06e54123d51ffc95ee5cff8..5b1e06d04cdcd6542bf9e5b557f3a110d9b09b5b 100644 (file)
@@ -884,7 +884,7 @@ krb5_dbm_db_rename(context, from, to)
         * files must exist because krb5_dbm_db_lock, called below,
         * will fail otherwise.
         */
-       db = KDBM_OPEN(db_ctx, to, O_RDWR|O_CREAT|O_EXCL, 0600); 
+       db = KDBM_OPEN(db_ctx, to, O_RDWR|O_CREAT, 0600); 
        if (db == NULL) {
             retval = errno;
             goto errout;