003-fdisk-mmc.patch 459 B

1234567891011121314
  1. diff -Nur busybox-1.15.2.orig/util-linux/fdisk.c busybox-1.15.2/util-linux/fdisk.c
  2. --- busybox-1.15.2.orig/util-linux/fdisk.c 2009-10-08 03:04:40.000000000 +0200
  3. +++ busybox-1.15.2/util-linux/fdisk.c 2010-02-23 20:41:01.000000000 +0100
  4. @@ -2770,7 +2770,9 @@
  5. for (s = ptname; *s; s++)
  6. continue;
  7. if (isdigit(s[-1]))
  8. - continue;
  9. + if (s[-1] != '0')
  10. + continue;
  11. +
  12. sprintf(devname, "/dev/%s", ptname);
  13. open_list_and_close(devname, 0);
  14. }