summaryrefslogtreecommitdiff
path: root/source4/lib
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 15:01:10 -0500
commit5fa17c14a5f58312b63445636a904cbf79d10f21 (patch)
treec824062bbe3d6d8004b680355b1f5f7cd005e5f5 /source4/lib
parenta45166bae0947614ff1cbfce928879eafe284f3f (diff)
downloadsamba-5fa17c14a5f58312b63445636a904cbf79d10f21.tar.gz
samba-5fa17c14a5f58312b63445636a904cbf79d10f21.tar.bz2
samba-5fa17c14a5f58312b63445636a904cbf79d10f21.zip
r23950: unlink before rename is superfluous.
Michael (This used to be commit dc0104be9acfcd97f95388029a421204723b641a)
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/tdb/tools/tdbbackup.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/source4/lib/tdb/tools/tdbbackup.c b/source4/lib/tdb/tools/tdbbackup.c
index a161085798..dedfb9e665 100644
--- a/source4/lib/tdb/tools/tdbbackup.c
+++ b/source4/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);