diff options
-rw-r--r-- | kerberosIV/kdb/krb_dbm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kerberosIV/kdb/krb_dbm.c b/kerberosIV/kdb/krb_dbm.c index 0cfed9cac61..5d201041e8c 100644 --- a/kerberosIV/kdb/krb_dbm.c +++ b/kerberosIV/kdb/krb_dbm.c @@ -1,4 +1,4 @@ -/* $Id: krb_dbm.c,v 1.2 1996/08/22 01:18:49 deraadt Exp $ */ +/* $Id: krb_dbm.c,v 1.3 1997/02/19 07:08:28 tholo Exp $ */ /*- * Copyright (C) 1989 by the Massachusetts Institute of Technology @@ -453,7 +453,7 @@ kerb_db_rename(from, to) { #if defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__) char *fromdb = gen_dbsuffix (from, ".db"); - char *todb = gen_dbsuffix (from, ".db"); + char *todb = gen_dbsuffix (to, ".db"); #else char *fromdir = gen_dbsuffix (from, ".dir"); char *todir = gen_dbsuffix (to, ".dir"); @@ -466,7 +466,7 @@ kerb_db_rename(from, to) #if defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__) if (rename (fromdb, todb) == 0) { - (void) unlink (fromdb); + (void) unlink (fromok); ok = 1; } free (fromdb); |