Package: libmtp / 1.1.8-1

1002-udev_rules.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: Adapt upstream udev rules file to Debian standards.
Forwarded: not-needed
Author: Alessio Treglia <alessio@debian.org>
---
 util/mtp-hotplug.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- libmtp.orig/util/mtp-hotplug.c
+++ libmtp/util/mtp-hotplug.c
@@ -66,7 +66,7 @@ int main (int argc, char **argv)
    * with ENV{ID_MEDIA_PLAYER}=1 writable for the console
    * user.
    */
-  char default_udev_action[] = "SYMLINK+=\"libmtp-%k\", ENV{ID_MTP_DEVICE}=\"1\", ENV{ID_MEDIA_PLAYER}=\"1\"";
+  char default_udev_action[] = "SYMLINK+=\"libmtp-%k\", MODE=\"660\", GROUP=\"audio\", ENV{ID_MTP_DEVICE}=\"1\", ENV{ID_MEDIA_PLAYER}=\"1\"";
   char *action; // To hold the action actually used.
   uint16_t last_vendor = 0x0000U;
   char mtp_probe_dir[256];