diff --git a/src/agent/rustjail/src/mount.rs b/src/agent/rustjail/src/mount.rs index d02aabeedc..2fe8c0bdf8 100644 --- a/src/agent/rustjail/src/mount.rs +++ b/src/agent/rustjail/src/mount.rs @@ -836,6 +836,7 @@ fn mount_from( if !src.is_dir() { let _ = OpenOptions::new() .create(true) + .truncate(true) .write(true) .open(&dest) .map_err(|e| {