]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commit
fix: mount command -t option argument parsing
authorTulio A M Mendes <[email protected]>
Tue, 17 Feb 2026 07:47:48 +0000 (04:47 -0300)
committerTulio A M Mendes <[email protected]>
Tue, 17 Feb 2026 07:47:48 +0000 (04:47 -0300)
commite75c5ebe19660b60fd145d564b798d1f97980c82
treeb708b7dd693742e2efc15795ce1ca4a75faeba6b
parent94a9f6cb77cfbb28126e4f1e8e33addc7fe4b97a
fix: mount command -t option argument parsing

The mount command parsed device=argv[1] and mountpoint=argv[2]
BEFORE scanning for -t, so 'mount -t fat /dev/hdb /test' set
device='-t' and mountpoint='fat' instead of the correct values.

Rewrote argument parsing to scan for -t first, then collect
remaining positional arguments as device and mountpoint.
Added usage message for missing arguments.
user/mount.c