]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libfdisk: fix partition names on GNU Hurd.
authorGabriele Giacone <1o5g4r8o@gmail.com>
Tue, 18 Nov 2014 01:13:22 +0000 (02:13 +0100)
committerGabriele Giacone <1o5g4r8o@gmail.com>
Tue, 18 Nov 2014 01:13:22 +0000 (02:13 +0100)
libfdisk/src/utils.c

index 7b62bf0adaabae61e055b3a0ccaa65f8b3d4e959..da6b01c2b482da6efd20f9ea5a90ab2dd733dce0 100644 (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 */