[PATCH] lshal - The next generation

Pierre Ossman drzeus-list at drzeus.cx
Wed Nov 2 02:42:14 PST 2005


Jonatan Liljedahl wrote:
> On Mon, 31 Oct 2005 16:13:33 +0100
> Pierre Ossman <drzeus-list at drzeus.cx> wrote:
> 
>> The short output is based on the assumption that most of the UDI is 
>> static. The output is:
>>
>> strrchr(udi, '/') + 1
> 
> There's a problem with that method: sometimes the device name contains
> slashes. Example from my box:
> 
> /org/freedesktop/Hal/devices/storage_model_SAMSUNG_CD_R/RW_SW_252S
> 
> It would be better if you strip the "/org/freedesktop/Hal/devices/"
> prefix.
> 

Fixed in the new patch.



More information about the hal mailing list