Replace the obsolete SYSFS{} key by the newer ATTR{} key in the udev output.

merge-requests/1/head
Julien BLACHE 2009-01-13 21:14:17 +00:00
rodzic 4cb1d28a35
commit e91b604df7
2 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -1,7 +1,8 @@
2009-01-13 Julien Blache <jb@jblache.org>
* tools/sane-desc.c: replace opencoded device permissions and
ownership by proper definitions. Group USB devices by vendor in
the HAL FDI output.
the HAL FDI output. Replace obsolete SYSFS{} key by the newer
ATTR{} key in the udev output.
All of the above based on a patch contributed by Dieter Jurzitza.
2009-01-10 m. allan noah <kitno455 a t gmail d o t com>

Wyświetl plik

@ -3236,7 +3236,7 @@ print_udev (void)
}
}
printf ("\n");
printf ("SYSFS{idVendor}==\"%s\", SYSFS{idProduct}==\"%s\", MODE=\"%s\", GROUP=\"%s\", ENV{libsane_matched}=\"yes\"\n",
printf ("ATTR{idVendor}==\"%s\", ATTR{idProduct}==\"%s\", MODE=\"%s\", GROUP=\"%s\", ENV{libsane_matched}=\"yes\"\n",
usbid->usb_vendor_id + 2, usbid->usb_product_id + 2, DEVMODE, DEVGROUP);
usbid = usbid->next;
}