sane-backends/sane-backends-1.0.18-udev-symlink.patch
2007-07-22 21:26:51 +00:00

12 lines
557 B
Diff

--- sane-backends-1.0.18/tools/sane-desc.c.udev-symlink 2006-05-31 18:31:56.000000000 +0200
+++ sane-backends-1.0.18/tools/sane-desc.c 2007-07-22 23:22:21.000000000 +0200
@@ -3187,7 +3187,7 @@ print_udev (void)
name = name->next;
}
printf ("\n");
- printf ("SYSFS{idVendor}==\"%s\", SYSFS{idProduct}==\"%s\", MODE=\"660\", GROUP=\"scanner\"\n",
+ printf ("SYSFS{idVendor}==\"%s\", SYSFS{idProduct}==\"%s\", SYMLINK+=\"scanner-%%k\"\n",
usbid->usb_vendor_id + 2, usbid->usb_product_id + 2);
usbid = usbid->next;
}