- memcpy(line, bufline, count);
- line[count] = '\0';
-
- linepos = line;
- if (get_key(&linepos, &variable, &value) == 0) {
- char syspath[UTIL_PATH_SIZE];
-
- dbg(event->udev, "import '%s=%s'\n", variable, value);
- /* handle device, renamed by external tool, returning new path */
- if (strcmp(variable, "DEVPATH") == 0) {
- info(event->udev, "updating devpath from '%s' to '%s'\n",
- udev_device_get_devpath(dev), value);
- util_strlcpy(syspath, udev_get_sys_path(event->udev), sizeof(syspath));
- util_strlcat(syspath, value, sizeof(syspath));
- udev_device_set_syspath(dev, syspath);
- } else {
- struct udev_list_entry *entry;