]> 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)
commit202379c12c845c5a7014942ffaee95e72498c81b
tree12b5e5f44ed174cbecfd6ca4848a3d5ee2fafa43
parentc63375a663157b85fad9c20079d7e32fd57e4a20
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