ya-mouse / fatresize

Resize FAT partitions using libparted
GNU General Public License v3.0
14 stars 21 forks source link

Bugfix wrong partition extended #33

Open whitty opened 1 year ago

whitty commented 1 year ago

This is a more complicated fix incorporating the change in PR-#32 for issue #31

This assumes there was a reason for preferring reading the partnum from devname instead of dev - it falls back to dev if not resolvable, and falls back to 1 (like the old get_partnum()) if nothing works out.