- if (export)
- printf("ID_EDD=%s\n", dent->d_name);
- else
- printf("%s\n", dent->d_name);
- rc = 0;
- break;
+ if (match[0] == '\0') {
+ /* store id */
+ util_strlcpy(match, dent->d_name, sizeof(match));
+ } else {
+ /* error, same signature for another device */
+ info(udev, "'%s' does not have a unique signature\n", node);
+ fprintf(stderr, "'%s' does not have a unique signature\n", node);
+ rc = 10;
+ goto exit;
+ }