From 9a0da927f97b1d5d03db156c77af875cdae8340a Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Mon, 4 Nov 2024 21:24:41 -0700 Subject: [PATCH] Fix argument parsing --- src/bin/mount.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/mount.rs b/src/bin/mount.rs index 75427d0168..58391c2620 100644 --- a/src/bin/mount.rs +++ b/src/bin/mount.rs @@ -346,7 +346,7 @@ fn main() { disk if disk_id.is_none() => disk_id = Some(DiskId::Path(disk.to_owned())), - mnt if disk_id.is_some() => mountpoint = Some(mnt.to_owned()), + mnt if disk_id.is_some() && mountpoint.is_none() => mountpoint = Some(mnt.to_owned()), opts if mountpoint.is_some() => match u64::from_str_radix(opts, 16) { Ok(block) => block_opt = Some(block),