store dircache in proper directory

This commit is contained in:
josch
2014-11-14 13:28:19 +01:00
parent d748f5e686
commit 5034d361ba

View File

@@ -175,7 +175,12 @@ static void mediafirefs_destroy()
fprintf(stderr, "storing hashtable\n");
fd = fopen("hashtable.dump", "w+");
fd = fopen(ctx->dircache, "w+");
if (fd == NULL) {
fprintf(stderr, "cannot open %s for writing\n", ctx->dircache);
return;
}
folder_tree_store(ctx->tree, fd);