dbg(udev_device->udev, "error reading db file %s: %m\n", filename);
return -1;
}
+ udev_device->db_loaded = true;
+
while (fgets(line, sizeof(line), f)) {
ssize_t len;
const char *val;
fclose(f);
info(udev_device->udev, "device %p filled with db file data\n", udev_device);
- udev_device->db_loaded = true;
return 0;
}
f = fopen(filename, "r");
if (f == NULL)
return -1;
+ udev_device->uevent_loaded = true;
while (fgets(line, sizeof(line), f)) {
char *pos;
udev_device->devnum = makedev(maj, min);
fclose(f);
- udev_device->uevent_loaded = true;
return 0;
}