app_persistency: file open fix
[bmcd] / src / persistency / app_persistency.rs
index 0678fc7589205bf8104b6b2d57bbdf4b847dd238..2540f37e0fce08bc9839806ecbf59ae8e01c50b2 100644 (file)
@@ -144,6 +144,7 @@ impl ApplicationPersistency {
             .read(true)
             .write(true)
             .truncate(true)
+            .create(true)
             .open(&path)
             .await;
         let inner = match serialized_file {