+
+Fri May 26 17:48:41 EDT 1995 Paul Park (pjpark@mit.edu)
+ * kdb5_destroy.c - Conditionalize implicit knowledge of filename
+ suffix under BERK_DB_DBM. If this is set, then use ".db"
+ otherwise, use ".dir" and ".pag".
+ * Makefile.in - Set BERK_DB_DBM when compiling.
+
Thu Mar 2 12:18:36 1995 Theodore Y. Ts'o <tytso@dcl>
* Makefile.in (ISODELIB): Remove reference to $(ISODELIB).
exit(1);
printf("OK, deleting database '%s'...\n", dbname);
}
+#ifndef BERK_DB_DBM
(void) strcpy(dbfilename, dbname);
(void) strcat(dbfilename, ".dir");
if (unlink(dbfilename) == -1) {
"Database may be partially deleted--inspect files manually!\n");
exit(1);
}
+#else /* BERK_DB_DBM */
+ (void) strcpy(dbfilename, dbname);
+ (void) strcat(dbfilename, ".db");
+ if (unlink(dbfilename) == -1) {
+ retval = errno;
+ com_err(argv[0], retval, "deleting database file '%s'",dbfilename);
+ fprintf(stderr,
+ "Database may be partially deleted--inspect files manually!\n");
+ exit(1);
+ }
+#endif /* BERK_DB_DBM */
(void) strcpy(dbfilename, dbname);
(void) strcat(dbfilename, ".ok");
if (unlink(dbfilename) == -1) {