blkid-print: fix partition path for /dev/sdX devices 93/299893/1
authorJacek Kryszyn <j.kryszyn@samsung.com>
Wed, 11 Oct 2023 12:18:20 +0000 (14:18 +0200)
committerJacek Kryszyn <j.kryszyn@samsung.com>
Wed, 11 Oct 2023 12:18:20 +0000 (14:18 +0200)
commitc453a18b7268f42be902f6a58fa64b9c37a94801
treeeafba0e6f05b1fc68329b8291c92c3f5b3d36bf2
parentc66a3dec42d58a536dfe2ebd7711c5053a26cbf7
blkid-print: fix partition path for /dev/sdX devices

This change fixes output in case of partitions on /dev/sdX devices.
Previously comparison of a device name with the "dev/sd" string
using strncmp would always return a value different than 0.

Change-Id: I77c471d174e87a70401cddab5464b8c1f671dc3d
src/blkid-print/blkid-print.c