From: Gabriele Giacone <1o5g4r8o@gmail.com> Date: Tue, 18 Nov 2014 01:13:22 +0000 (+0100) Subject: libfdisk: fix partition names on GNU Hurd. X-Git-Tag: v2.26-rc1~214 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96f7a117b3b68ec0bc94a1aa165092fc8591ee6f;p=thirdparty%2Futil-linux.git libfdisk: fix partition names on GNU Hurd. --- diff --git a/libfdisk/src/utils.c b/libfdisk/src/utils.c index 7b62bf0ada..da6b01c2b4 100644 --- a/libfdisk/src/utils.c +++ b/libfdisk/src/utils.c @@ -90,7 +90,11 @@ char *fdisk_partname(const char *dev, size_t partno) w = strlen(dev); if (isdigit(dev[w - 1])) +#ifdef __GNU__ + p = "s"; +#else p = "p"; +#endif /* devfs kludge - note: fdisk partition names are not supposed to equal kernel names, so there is no reason to do this */