diff options
Diffstat (limited to 'kerberosIV')
-rw-r--r-- | kerberosIV/kdb/krb_dbm.c | 6 | ||||
-rw-r--r-- | kerberosIV/kdb_destroy/kdb_destroy.c | 8 |
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) |