summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>1997-02-19 07:08:29 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>1997-02-19 07:08:29 +0000
commit46130b940a86e7aa2f32da00435cfc78e343b8ac (patch)
treeff50390e714f13aab42c9c8d5e8e17e6b1921dca
parent53f94ff48ea3662a6b3fc66b602d0e2078e3b240 (diff)
Get database renames correct
-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 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);