Magellan Linux

Contents of /trunk/hal/patches/hal-0.5.7.1-sr-driver.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 82 - (show annotations) (download)
Fri Oct 20 18:01:50 2006 UTC (17 years, 6 months ago) by niro
File size: 654 byte(s)
patches and files for hal-0.5.7.1-r1

1 diff -ru hal-0.5.7.1.orig/hald/linux2/hotplug.c hal-0.5.7.1/hald/linux2/hotplug.c
2 --- hal-0.5.7.1.orig/hald/linux2/hotplug.c 2006-07-26 11:03:17.000000000 -0700
3 +++ hal-0.5.7.1/hald/linux2/hotplug.c 2006-08-30 19:50:22.000000000 -0700
4 @@ -282,7 +282,8 @@
5 size_t len;
6
7 len = strlen(hotplug_event->sysfs.sysfs_path);
8 - is_partition = isdigit(hotplug_event->sysfs.sysfs_path[len - 1]) ||
9 + is_partition = (isdigit(hotplug_event->sysfs.sysfs_path[len - 1])
10 + && ! strstr(hotplug_event->sysfs.sysfs_path, "/block/sr")) ||
11 strstr (hotplug_event->sysfs.sysfs_path, "/fakevolume") ;
12
13 if (hotplug_event->action == HOTPLUG_ACTION_ADD) {