Skip to content

Commit

Permalink
apd: fix some logic error
Browse files Browse the repository at this point in the history
Signed-off-by: Admire<[email protected]>
  • Loading branch information
Admirepowered committed Jun 30, 2024
1 parent cd79b4f commit 67d0c5e
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions apd/src/mount.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,12 @@ impl AutoMountExt4 {
let permissions = metadata.permissions();
let mode = permissions.mode();

if permissions.readonly()
if permissions.readonly(){
#[cfg(any(target_os = "linux", target_os = "android"))]
{
println!(
"File permissions: {:o} (octal)",
mode & 0o777,
);
}
#[cfg(target_os = "windows")]
{
println!("not support");
println!("File permissions: {:o} (octal)",mode & 0o777);

}

}

mount_ext4(source, target)?;
Expand Down

0 comments on commit 67d0c5e

Please sign in to comment.