-/* $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
{
#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");
#if defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__)
if (rename (fromdb, todb) == 0) {
- (void) unlink (fromdb);
+ (void) unlink (fromok);
ok = 1;
}
free (fromdb);