From 67b0553f56c3757d734e6041d6ac69ee8ddfad6d Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 18 Jul 2007 08:29:00 +0000 Subject: r23950: unlink before rename is superfluous. Michael (This used to be commit 63c4c40cf7055ab7cf413a23e306cf209a1dd0a1) --- source3/lib/tdb/tools/tdbbackup.c | 1 - 1 file changed, 1 deletion(-) (limited to 'source3/lib/tdb') diff --git a/source3/lib/tdb/tools/tdbbackup.c b/source3/lib/tdb/tools/tdbbackup.c index a161085798..dedfb9e665 100644 --- a/source3/lib/tdb/tools/tdbbackup.c +++ b/source3/lib/tdb/tools/tdbbackup.c @@ -177,7 +177,6 @@ static int backup_tdb(const char *old_name, const char *new_name, int hash_size) /* close the new tdb and rename it to .bak */ tdb_close(tdb_new); - unlink(new_name); if (rename(tmp_name, new_name) != 0) { perror(new_name); free(tmp_name); -- cgit