summaryrefslogtreecommitdiff
path: root/source3/lib/tdb
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2007-07-18 08:29:00 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:28:48 -0500
commit67b0553f56c3757d734e6041d6ac69ee8ddfad6d (patch)
treea46f348668b8cff0b1f01015cfc5360a547ef467 /source3/lib/tdb
parent14e81b300901a764d3c400d35991b04ad3d6a89c (diff)
downloadsamba-67b0553f56c3757d734e6041d6ac69ee8ddfad6d.tar.gz
samba-67b0553f56c3757d734e6041d6ac69ee8ddfad6d.tar.bz2
samba-67b0553f56c3757d734e6041d6ac69ee8ddfad6d.zip
r23950: unlink before rename is superfluous.
Michael (This used to be commit 63c4c40cf7055ab7cf413a23e306cf209a1dd0a1)
Diffstat (limited to 'source3/lib/tdb')
-rw-r--r--source3/lib/tdb/tools/tdbbackup.c1
1 files changed, 0 insertions, 1 deletions
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);