On Thu, 3 Mar 2011 15:15:30 +0100
"Clément Battin" <[email protected]> wrote:

> Hi.
> 
> I found a possible bug in Eeze. This watcher never calls its callback:
> 
> eeze_udev_watch_add(EEZE_UDEV_TYPE_REMOVABLE, EEZE_UDEV_EVENT_REMOVE, cb,
> NULL);
> 
> When an USB drive is unplugged, nothing happens (tried with eeze 1.0 and
> 1.1). But it works perfectly fine with EEZE_UDEV_EVENT_ADD, a plug triggers
> the callback.
> 
> After some debugging in eeze_udev_watch.c it seems to me that
> udev_device_get_sysattr_value() always returns NULL when the action is
> "remove". So the system attributes "removable" and "capability" shouldn't be
> tested in this case.
> 
> Here is my patch.
> 
> Regards,
> 
> Clement Battin
bug--

thanks,
-- 
Mike Blumenkrantz
Zentific: NULL pointer dereferences now 50% off!

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to