]> git.proxmox.com Git - proxmox-openid-rs.git/commitdiff
add fsync parameter to replace_file
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 20 Oct 2021 12:55:15 +0000 (14:55 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 21 Oct 2021 05:12:27 +0000 (07:12 +0200)
Depend on proxmox 0.15.0

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
Cargo.toml
src/auth_state.rs

index c79bc7b2db9bcfd16578f10e34cd40cfe8e49270..e0c8d5a9a1c7e749a69d44e6e6c7569ea272757b 100644 (file)
@@ -24,5 +24,5 @@ serde = { version = "1.0", features = ["derive"] }
 serde_json = "1.0"
 url = "2.1"
 
-proxmox = "0.14.0"
+proxmox = "0.15.0"
 proxmox-time = "1"
index dcf564d25ff83d70c54b8549ded1b14a73121c15..f7c7cd0ff0e9538130ab47eed8db05c22d43d580 100644 (file)
@@ -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(())
 }