summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2004-02-17 03:19:48 +0100
committerGreg KH <gregkh@suse.de>2005-04-27 06:32:27 +0200
commit7a4877bf6fea5f1d1d8390b7efd6b8a53003631a (patch)
treeda83fa14c383b940058101c6650ad26cbdd42b97
parent[PATCH] v017 release (diff)
downloadsystemd-7a4877bf6fea5f1d1d8390b7efd6b8a53003631a.tar.xz
systemd-7a4877bf6fea5f1d1d8390b7efd6b8a53003631a.zip
[PATCH] Fix bug where we did not use the "converted" kernel name if we had no rule.
This fixes the bug with names that have a ! in them and no rule to match.
-rw-r--r--namedev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/namedev.c b/namedev.c
index 018fd452e9..f138fe9769 100644
--- a/namedev.c
+++ b/namedev.c
@@ -745,7 +745,7 @@ int namedev_name_device(struct sysfs_class_device *class_dev, struct udevice *ud
}
/* no rule was found so we use the kernel name */
- strfieldcpy(udev->name, class_dev->name);
+ strfieldcpy(udev->name, udev->kernel_name);
goto done;
found: