git.samba.org
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0d9819
)
Call robust_rename() with its newly-added arg.
author
Wayne Davison
<wayned@samba.org>
Mon, 30 Jan 2006 07:18:03 +0000
(07:18 +0000)
committer
Wayne Davison
<wayned@samba.org>
Mon, 30 Jan 2006 07:18:03 +0000
(07:18 +0000)
backup.c
patch
|
blob
|
history
diff --git
a/backup.c
b/backup.c
index e5b838485b0dd33ca573b0173fe0a379afe46245..4669c7eeeaa6f82cc657747af4de6849989bcf0e 100644
(file)
--- a/
backup.c
+++ b/
backup.c
@@
-160,8
+160,9
@@
static int make_bak_dir(char *fullpath)
/* robustly move a file, creating new directory structures if necessary */
static int robust_move(char *src, char *dst)
{
- if (robust_rename(src, dst, 0755) < 0 && (errno != ENOENT
- || make_bak_dir(dst) < 0 || robust_rename(src, dst, 0755) < 0))
+ if (robust_rename(src, dst, NULL, 0755) < 0
+ && (errno != ENOENT || make_bak_dir(dst) < 0
+ || robust_rename(src, dst, NULL, 0755) < 0))
return -1;
return 0;
}