summaryrefslogtreecommitdiff
path: root/kerberosIV/kdb/krb_dbm.c
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 /kerberosIV/kdb/krb_dbm.c
parent32bb5c8b5aaa2322996d5499d65ed3d99ab6a3ca (diff)
__OpenBSD__
Diffstat (limited to 'kerberosIV/kdb/krb_dbm.c')
-rw-r--r--kerberosIV/kdb/krb_dbm.c6
1 files changed, 3 insertions, 3 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;