- log_info(udev, "device %p filled with %s data\n", udev_device, udev_device_get_devpath(udev_device));
+
+ if (udevice->name[0] != '\0')
+ asprintf(&udev_device->devname, "%s/%s", udev_get_dev_path(udev), udevice->name);
+
+ list_for_each_entry(name_loop, &udevice->symlink_list, node) {
+ char name[PATH_SIZE];
+
+ strlcpy(name, udev_get_dev_path(udev), sizeof(name));
+ strlcat(name, "/", sizeof(name));
+ strlcat(name, name_loop->name, sizeof(name));
+ name_list_add(&udev_device->link_list, name, 0);
+ }
+
+ list_for_each_entry(name_loop, &udevice->env_list, node)
+ name_list_add(&udev_device->env_list, name_loop->name, 0);
+
+ udev_device_cleanup(udevice);