libfdisk: fix partition names on GNU Hurd.

This commit is contained in:
Gabriele Giacone 2014-11-18 02:13:22 +01:00
parent 44374b10d1
commit 96f7a117b3
1 changed files with 4 additions and 0 deletions

View File

@ -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 */