diff options
author | Michael Adam <obnox@samba.org> | 2007-07-18 08:29:00 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 15:01:10 -0500 |
commit | 5fa17c14a5f58312b63445636a904cbf79d10f21 (patch) | |
tree | c824062bbe3d6d8004b680355b1f5f7cd005e5f5 /source4/lib | |
parent | a45166bae0947614ff1cbfce928879eafe284f3f (diff) | |
download | samba-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.c | 1 |
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); |