git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a45166b
)
r23950: unlink before rename is superfluous.
author
Michael Adam
<obnox@samba.org>
Wed, 18 Jul 2007 08:29:00 +0000
(08:29 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 20:01:10 +0000
(15:01 -0500)
Michael
(This used to be commit
dc0104be9acfcd97f95388029a421204723b641a
)
source4/lib/tdb/tools/tdbbackup.c
patch
|
blob
|
history
diff --git
a/source4/lib/tdb/tools/tdbbackup.c
b/source4/lib/tdb/tools/tdbbackup.c
index a161085798d183eb59029da0c287ca63cddf6fa7..dedfb9e6656fc408a059ce3ea54cd0990626e6e6 100644
(file)
--- 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);