File libparted-linux-pmem-path.patch of Package parted.14425

 libparted/arch/linux.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
--- parted-3.2/libparted/arch/linux.c	
+++ parted-3.2/libparted/arch/linux.c	
@@ -2440,7 +2440,7 @@ _device_get_part_path (PedDevice const *
                     dev->type == PED_DEVICE_CPQARRAY ||
                     dev->type == PED_DEVICE_DAC960 ||
                     dev->type == PED_DEVICE_NVME ||
-                    dev->type == PED_DEVICE_PMEM ||
+                    ((dev->type == PED_DEVICE_PMEM) && (!isdigit (devpath[path_len -1 ]))) ||
                     dev->type == PED_DEVICE_SDMMC)
                         p = "p";
                 else if (dev->type == PED_DEVICE_DM)
openSUSE Build Service is sponsored by