wok-current diff udev/stuff/udev-events-android.patch @ rev 25786

Bump gvfs to fix issue with open files on android device, patch udev to fix mtp issue on pcmanfm
author Stanislas Leduc <shann@slitaz.org>
date Tue Jul 29 18:05:13 2025 +0000 (2 months ago)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/udev/stuff/udev-events-android.patch	Tue Jul 29 18:05:13 2025 +0000
     1.3 @@ -0,0 +1,16 @@
     1.4 +diff -u udev/source/udev-182/src/udev-event.c.orig udev/source/udev-182/src/udev-event.
     1.5 +c
     1.6 +--- a/src/udev-event.c
     1.7 ++++ b/src/udev-event.c
     1.8 +@@ -883,6 +883,11 @@
     1.9 +         if (udev_device_get_subsystem(dev) == NULL)
    1.10 +                 return -1;
    1.11 + 
    1.12 ++       if (strcmp(udev_device_get_action(dev), "bind") == 0 || strcmp(udev_device_get_action(dev), "unbind") == 0) {
    1.13 ++               // Ignore bind/unbind events
    1.14 ++               return 0;
    1.15 ++       }
    1.16 ++
    1.17 +         if (strcmp(udev_device_get_action(dev), "remove") == 0) {
    1.18 +                 udev_device_read_db(dev, NULL);
    1.19 +                 udev_device_delete_db(dev);