[Parted-maintainers] Fatresize package

Alexander Coffin alex.coffin at matician.com
Fri Sep 8 02:05:58 BST 2023


Hello Debian parted maintainers,

The fatresize package seems very unmaintained and doesn't seem to work
for even basic functions such as `sudo fatresize -vvv -s max
/dev/sda3` or when attempting to work around another bug `sudo
fatresize -vvv -s max -n 3 /dev/sda` which still selects the incorrect
partition or finally `sudo fatresize -s max /dev/sda -n 3` doesn't
work either as it can't calculate the size properly.

```
alex at coffindebian:~/workspace/matic3$ sudo fatresize -s max /dev/sda -n 3
fatresize 1.1.0 (20201114)
part(start=41945088, end=42076159, length=131072)
Error: The location 150GB is outside of the device /dev/sda.
```

After glancing through the code I see some very questionable code that
seems to potentially fall off the end of the string if my reading of
this C code isn't off.

```

static int get_partnum(char *dev) {
  int pnum;
  char *p;

  p = dev + strlen(dev) - 1;
  while (*p && isdigit(*p) && *p != '/') {
    p--;
  }

  // snip
}
```

As much as it pains me to say this I think this package has been in
need of love for such a long time based upon the age of the bug
reports on the Github Issues tracker
https://github.com/ya-mouse/fatresize/issues that I am wondering if
this package should be declared abandoned and removed from the Debian
index?

Regards with sadness,
Alexander Coffin



More information about the Parted-maintainers mailing list