Force content saving if it's in text format.

This commit is contained in:
Andrea Mazzoleni 2013-08-25 17:53:34 +02:00
parent 927bd8a564
commit 11888d9e0d

View file

@ -3141,6 +3141,9 @@ void state_read(struct snapraid_state* state)
state_read_binary(state, path, f);
} else {
state_read_text(state, path, f, st.st_mtime);
/* force a rewrite to convert to binary */
state->need_write = 1;
}
sclose(f);