summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-08-22 01:18:52 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-08-22 01:18:52 +0000
commitf75d5892cbe731a6e97177c5a83692c1080d6d45 (patch)
tree35e3e5861c6ef30d31226f8e623782a852967b67
parent32bb5c8b5aaa2322996d5499d65ed3d99ab6a3ca (diff)
__OpenBSD__
-rw-r--r--kerberosIV/kdb/krb_dbm.c6
-rw-r--r--kerberosIV/kdb_destroy/kdb_destroy.c8
2 files changed, 7 insertions, 7 deletions
diff --git a/kerberosIV/kdb/krb_dbm.c b/kerberosIV/kdb/krb_dbm.c
index 9034a484571..0cfed9cac61 100644
--- a/kerberosIV/kdb/krb_dbm.c
+++ b/kerberosIV/kdb/krb_dbm.c
@@ -1,4 +1,4 @@
-/* $Id: krb_dbm.c,v 1.1 1995/12/14 06:52:36 tholo Exp $ */
+/* $Id: krb_dbm.c,v 1.2 1996/08/22 01:18:49 deraadt Exp $ */
/*-
* Copyright (C) 1989 by the Massachusetts Institute of Technology
@@ -451,7 +451,7 @@ kerb_db_rename(from, to)
char *from;
char *to;
{
-#if defined(__NetBSD__) || defined(__FreeBSD__)
+#if defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__)
char *fromdb = gen_dbsuffix (from, ".db");
char *todb = gen_dbsuffix (from, ".db");
#else
@@ -464,7 +464,7 @@ kerb_db_rename(from, to)
long trans = kerb_start_update(to);
int ok = 0;
-#if defined(__NetBSD__) || defined(__FreeBSD__)
+#if defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__)
if (rename (fromdb, todb) == 0) {
(void) unlink (fromdb);
ok = 1;
diff --git a/kerberosIV/kdb_destroy/kdb_destroy.c b/kerberosIV/kdb_destroy/kdb_destroy.c
index d4edc888842..8e43b0073a7 100644
--- a/kerberosIV/kdb_destroy/kdb_destroy.c
+++ b/kerberosIV/kdb_destroy/kdb_destroy.c
@@ -1,4 +1,4 @@
-/* $Id: kdb_destroy.c,v 1.1 1995/12/14 06:52:43 tholo Exp $ */
+/* $Id: kdb_destroy.c,v 1.2 1996/08/22 01:18:51 deraadt Exp $ */
/*-
* Copyright 1987, 1988 by the Student Information Processing Board
@@ -25,14 +25,14 @@ main(void)
char answer[10]; /* user input */
char dbm[256]; /* database path and name */
char dbm1[256]; /* database path and name */
-#if defined(__FreeBSD__) || defined(__NetBSD__)
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
char *file; /* database file names */
#else
char *file1, *file2; /* database file names */
#endif
strcpy(dbm, DBM_FILE);
-#if defined(__FreeBSD__) || defined(__NetBSD__)
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
file = strcat(dbm, ".db");
#else
strcpy(dbm1, DBM_FILE);
@@ -46,7 +46,7 @@ main(void)
fgets(answer, sizeof(answer), stdin);
if (answer[0] == 'y' || answer[0] == 'Y') {
-#if defined(__FreeBSD__) || defined(__NetBSD__)
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
if (unlink(file) == 0)
#else
if (unlink(file1) == 0 && unlink(file2) == 0)