Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: confidential-containers/td-shim
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1a7a52ab89521a7706be4373aa8ca919227b7238
Choose a base ref
..
head repository: confidential-containers/td-shim
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 5c29271cec26b40fb8a937af4be5bb3560bca27c
Choose a head ref
Showing with 1 addition and 1 deletion.
  1. +1 −1 td-shim-tools/src/read_file.rs
2 changes: 1 addition & 1 deletion td-shim-tools/src/read_file.rs
Original file line number Diff line number Diff line change
@@ -50,7 +50,7 @@ pub fn read_from_binary_file(filename: &String) -> Result<Vec<u8>> {
// Read whole binary file and return binary string
let mut buffer: Vec<u8> = vec![0; file_size as usize];
if read_from_file(&mut file, 0, &mut buffer).is_err() {
bail!("Failed to read metadata offset");
bail!("Failed to read tdshim binary file");
}
Ok(buffer)
}