Skip to content

Commit

Permalink
authentication string should be printer to a user
Browse files Browse the repository at this point in the history
  • Loading branch information
garikello3d committed Dec 21, 2023
1 parent 8117ca1 commit 798fce1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ pub fn backup<R: Read>(

pub fn check<W: DataSink>(mut write_to: Option<W>, cfg_path: &str, pass: &str, buf_size_bytes: usize, check_free_space: &Option<&str>) -> Result<(), String> {
let stats = read_metadata::<MultiFilesReader>(cfg_path)?;
eprintln!("authentication string: {}", stats.auth_string);

if let Some(mount_point) = check_free_space {
let all_data = stats.in_data_len.unwrap(); // SAFE because if was checked in read_metadata()
Expand Down

0 comments on commit 798fce1

Please sign in to comment.