libfdisk: fix partition names on GNU Hurd.
This commit is contained in:
parent
44374b10d1
commit
96f7a117b3
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue