From ee75f5b3addaa6e2989a2dabbd2d49fed71d19c8 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Tue, 3 Feb 2015 10:22:28 +0000 Subject: Fix to support non-POSIX behaviour when renaming cache entries on disc. --- content/fs_backing_store.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/content/fs_backing_store.c b/content/fs_backing_store.c index 56091d1f9..4cf029202 100644 --- a/content/fs_backing_store.c +++ b/content/fs_backing_store.c @@ -611,6 +611,8 @@ static nserror write_entries(struct store_state *state) return ret; } + /* remove() call is to handle non-POSIX rename() implementations */ + (void)remove(fname); if (rename(tname, fname) != 0) { unlink(tname); free(tname); -- cgit v1.2.3