[pbs-devel] [PATCH proxmox-opendid] add fsync parameter to replace_file

Dietmar Maurer dietmar at proxmox.com
Wed Oct 20 15:00:44 CEST 2021


---
 src/auth_state.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/auth_state.rs b/src/auth_state.rs
index dcf564d..f7c7cd0 100644
--- a/src/auth_state.rs
+++ b/src/auth_state.rs
@@ -62,7 +62,7 @@ fn replace_auth_state(
     let options = CreateOptions::new().perm(mode);
     let raw = serde_json::to_string_pretty(data)?;
 
-    replace_file(path, raw.as_bytes(), options)?;
+    replace_file(path, raw.as_bytes(), options, false)?;
 
     Ok(())
 }
-- 
2.30.2






More information about the pbs-devel mailing list