* kdb_dbm.c (krb5_dbm_db_rename): O_EXCL is meaningless without
authorMark Eichin <eichin@mit.edu>
Tue, 30 Jan 1996 23:28:18 +0000 (23:28 +0000)
committerMark Eichin <eichin@mit.edu>
Tue, 30 Jan 1996 23:28:18 +0000 (23:28 +0000)
O_CREAT.

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

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

index 34e37e0630d5f41c786fa60c5edb25eb25842ac9..d6609bc0c13b675d58cb239306456a4510b90cff 100644 (file)
@@ -1,3 +1,8 @@
+Tue Jan 30 18:26:38 1996  Mark Eichin  <eichin@cygnus.com>
+
+       * kdb_dbm.c (krb5_dbm_db_rename): O_EXCL is meaningless without
+       O_CREAT.
+
 Sat Jan 27 01:01:17 1996  Mark Eichin  <eichin@cygnus.com>
 
        * t_kdb.c: wrap db_dbm decls and berkely_dispatch in ifdefs
index 989a19ba1db2a6c7278805a03599fe4d2ae5861d..1d61c622fa3f5021843c4572de6f11463e923562 100644 (file)
@@ -895,7 +895,7 @@ krb5_dbm_db_rename(context, from, to)
        if ((db_ctx->db_lf_name = gen_dbsuffix(db_ctx->db_name,
                                               KDBM_LOCK_EXT(db_ctx)))) {
            if ((db_ctx->db_lf_file = open(db_ctx->db_lf_name,
-                                          O_RDWR|O_EXCL, 0600)) >= 0){
+                                          O_RDWR|O_EXCL|O_CREAT, 0600)) >= 0){
                db_ctx->db_inited = 1;
                if ((retval = krb5_dbm_db_get_age(context,
                                                  NULL,