Remove vestigal ODBM support
authorTheodore Tso <tytso@mit.edu>
Mon, 20 May 1996 22:17:27 +0000 (22:17 +0000)
committerTheodore Tso <tytso@mit.edu>
Mon, 20 May 1996 22:17:27 +0000 (22:17 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8085 dc483132-0cff-0310-8789-dd5450dbe970

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

index e21b75b79416b3aa1f6c10f719c4321ee29b4fbb..a8c32452e27f63c9a73dbf52c2e32f0b6e9661c2 100644 (file)
@@ -1,3 +1,7 @@
+Mon May 20 18:02:07 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
+
+       * kdb_dbm.c (krb5_dbm_db_create): Remove vestigal ODBM support.
+
 Sat May 18 15:07:09 1996  Ezra Peisach  (epeisach@paris)
 
        * kdb_dbm.c: Do not provide prototypes for dbm_error or
index e93865f73aaf88b750ea135778d91e4868380b0a..e42e31f9d3132daf557d66b2b545cd1cbec312f8 100644 (file)
@@ -675,48 +675,16 @@ krb5_dbm_db_create(context, db_name)
     char *okname;
     int fd;
     register krb5_error_code retval = 0;
-#ifndef ODBM
     DBM *db;
-#else
-    char *dirname;
-    char *pagname;
-#endif
 
     if ((retval = k5dbm_init_context(context)))
        return(retval);
     
-#ifndef ODBM
     db = KDBM_OPEN(context->db_context, db_name, O_RDWR|O_CREAT|O_EXCL, 0600);
     if (db == NULL)
        retval = errno;
     else
        KDBM_CLOSE(context->db_context, db);
-#else /* OLD DBM */
-    dirname = gen_dbsuffix(db_name, ".dir");
-    if (!dirname)
-       return ENOMEM;
-    pagname = gen_dbsuffix(db_name, ".pag");
-    if (!pagname) {
-       free_dbsuffix(dirname);
-       return ENOMEM;
-    }    
-
-    fd = open(dirname, O_RDWR|O_CREAT|O_EXCL, 0600);
-    if (fd < 0)
-       retval = errno;
-    else {
-       close(fd);
-       fd = open (pagname, O_RDWR|O_CREAT|O_EXCL, 0600);
-       if (fd < 0)
-           retval = errno;
-       else
-           close(fd);
-       if (dbminit(db_name) < 0)
-           retval = errno;
-    }
-    free_dbsuffix(dirname);
-    free_dbsuffix(pagname);
-#endif /* ODBM */
     if (retval == 0) {
        okname = gen_dbsuffix(db_name, KDBM_LOCK_EXT(context->db_context));
        if (!okname)