summaryrefslogtreecommitdiff
path: root/libudev/libudev-device.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2009-07-03 18:40:38 +0200
committerKay Sievers <kay.sievers@vrfy.org>2009-07-04 04:12:06 +0200
commit9cc94b15223d158ad618a9b05210a7eb8f748007 (patch)
tree1ea2d3a116ff0d024e4e627d58f2b0008802de4c /libudev/libudev-device.c
parentfc8933f7f65d52d91f502dae778609242cdf3492 (diff)
libudev: monitor - handle kernel supplied DEVNAME properly
Diffstat (limited to 'libudev/libudev-device.c')
-rw-r--r--libudev/libudev-device.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libudev/libudev-device.c b/libudev/libudev-device.c
index 7644e6c63d..cbbddaeff0 100644
--- a/libudev/libudev-device.c
+++ b/libudev/libudev-device.c
@@ -1299,6 +1299,7 @@ int udev_device_set_knodename(struct udev_device *udev_device, const char *knode
udev_device->knodename = strdup(knodename);
if (udev_device->knodename == NULL)
return -ENOMEM;
+ udev_device_add_property(udev_device, "DEVNAME", udev_device->knodename);
return 0;
}