1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-19 22:50:17 +03:00

[PATCH] udev_volume_id: fix -d option

The -d option in udev_allows to go from a partition to the underlying disk
for s390 dasd labels. If the device is already the disk itself, finding the 
parent will fail, therefore -d on /sys/block/dasda/ for example gives no 
result at all.
This commit is contained in:
cborntra@de.ibm.com 2005-01-30 13:09:38 +01:00 committed by Greg KH
parent 43ca395e49
commit 61b24e5e19

View File

@ -186,7 +186,7 @@ int main(int argc, char *argv[])
if (class_dev_parent != NULL)
vid = open_classdev(class_dev_parent);
else
vid = open_classdev(class_dev_parent);
vid = open_classdev(class_dev);
if (vid == NULL)
goto exit;