diff options
Diffstat (limited to 'src/commands/mount.rs')
-rw-r--r-- | src/commands/mount.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/mount.rs b/src/commands/mount.rs index 5782b3ab..86149fa8 100644 --- a/src/commands/mount.rs +++ b/src/commands/mount.rs @@ -339,7 +339,7 @@ fn cmd_mount_inner(opt: Cli) -> Result<()> { if unsafe { bcachefs::bch2_sb_is_encrypted(first_sb.sb) } { let _key_handle: KeyHandle = KeyHandle::new_from_search(&uuid).or_else(|_| { opt.passphrase_file - .and_then(|path| match Passphrase::new_from_file(&first_sb, path) { + .and_then(|path| match Passphrase::new_from_file(path) { Ok(p) => Some(KeyHandle::new(&first_sb, &p)), Err(e) => { error!( |