diff options
author | Wayne Davison <wayned@samba.org> | 2006-01-30 07:18:03 +0000 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2006-01-30 07:18:03 +0000 |
commit | 21955d9c929870d7b4b67698dfaa4978b18d2047 (patch) | |
tree | 50713f1999c573d5c1c40790a6a19235d47ad3de /backup.c | |
parent | a0d9819f8c6ba64930d3858f7b01e4d9250d5369 (diff) | |
download | rsync-21955d9c929870d7b4b67698dfaa4978b18d2047.tar.gz rsync-21955d9c929870d7b4b67698dfaa4978b18d2047.tar.bz2 rsync-21955d9c929870d7b4b67698dfaa4978b18d2047.zip |
Call robust_rename() with its newly-added arg.
Diffstat (limited to 'backup.c')
-rw-r--r-- | backup.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; } |