Re: scsi_id segfault with udev-009

From: Martin Schlemmer
Date: Wed Dec 17 2003 - 14:39:00 EST


On Wed, 2003-12-17 at 20:17, Daniel Stekloff wrote:
> On Wednesday 17 December 2003 09:29 am, Martin Schlemmer wrote:
> > Hi
> >
> > Getting this with scsi_id and udev-009:
>
>
> Hi,
>
> Scsi_id hasn't been changed to use the latest libsysfs changes. The
> "directory" in the sysfs_class_device is now considered "private" and only
> should be accessed using functions. Treating the structures as handles lets
> us only load information when it's needed, reducing caching or stale
> information and also helping performance.
>
> Here's the problem.
>
> static inline char *sysfs_get_attr(struct sysfs_class_device *dev,
> const char *attr)
> {
> return sysfs_get_value_from_attributes(dev->directory->attributes,
> attr);
> }
>
> Please try this quick fix:
>

Yep, that fixes it, thanks. Btw, any reason it wont actually display
anything ?


Thanks,

--

Martin Schlemmer
Gentoo Linux Developer, Desktop/System Team Developer
Cape Town, South Africa


Attachment: signature.asc
Description: This is a digitally signed message part