]> git.proxmox.com Git - proxmox-backup.git/blobdiff - src/tools/systemd/config.rs
use new fsync parameter to replace_file and atomic_open_or_create
[proxmox-backup.git] / src / tools / systemd / config.rs
index ed95bcff33d2d21aaac0de26f463b091b3aff0a2..baf94e88dd155d340235ad31a0a46b6516bab222 100644 (file)
@@ -133,7 +133,7 @@ fn save_systemd_config(config: &SectionConfig, filename: &str, data: &SectionCon
         .perm(mode)
         .owner(nix::unistd::ROOT);
 
-    replace_file(filename, raw.as_bytes(), options)?;
+    replace_file(filename, raw.as_bytes(), options, true)?;
 
     Ok(())
 }