- udev_init_device(&db_udev, NULL, NULL);
- if (parse_db_file(&db_udev, filename) == 0) {
- if (handler_function(&db_udev) != 0)
+ path[0] = '\0';
+ nodename[0] = '\0';
+ cur = 0;
+ while (cur < bufsize) {
+ count = buf_get_line(buf, bufsize, cur);
+ bufline = &buf[cur];
+ cur += count+1;
+
+ switch(bufline[0]) {
+ case 'P':
+ if (count > sizeof(path))
+ count = sizeof(path)-1;
+ strlcpy(path, &bufline[2], count-2);