From 21955d9c929870d7b4b67698dfaa4978b18d2047 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Mon, 30 Jan 2006 07:18:03 +0000 Subject: [PATCH] Call robust_rename() with its newly-added arg. --- backup.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backup.c b/backup.c index e5b83848..4669c7ee 100644 --- 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; } -- 2.34.1