mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
Force content saving if it's in text format.
This commit is contained in:
parent
927bd8a564
commit
11888d9e0d
1 changed files with 3 additions and 0 deletions
3
state.c
3
state.c
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue