[patch] Incorrect use of hal_sysfs_path
Richard Hughes
richard at hughsie.com
Tue Feb 8 15:30:25 PST 2005
Noticed this when compiling CVS:
23:17:46.657 [E] acpi.c:173: Couldn't open /sys/acpi/battery: Error
opening directory '/sys/acpi/battery': No such file or directory
23:17:46.657 [E] acpi.c:173: Couldn't open /sys/acpi/ac_adapter: Error
opening directory '/sys/acpi/ac_adapter': No such file or directory
23:17:46.657 [E] acpi.c:173: Couldn't open /sys/acpi/button/lid: Error
opening directory '/sys/acpi/button/lid': No such file or directory
23:17:46.657 [E] acpi.c:173: Couldn't open /sys/acpi/button/power: Error
opening directory '/sys/acpi/button/power': No such file or directory
23:17:46.657 [E] acpi.c:173: Couldn't open /sys/acpi/button/sleep: Error
opening directory '/sys/acpi/button/sleep': No such file or directory
Of course, acpi lives in /proc/acpi:
Looking in
hald/linux2/osspec.c:
const gchar *
get_hal_proc_path (void)
{
return hal_sysfs_path;
}
Trivial fix attached (hopefully...)
Richard.
--
http://www.hughsie.com/PUBLIC-KEY
-------------- next part --------------
A non-text attachment was scrubbed...
Name: procpath.patch
Type: text/x-patch
Size: 371 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20050208/c8d9bf25/procpath.bin
-------------- next part --------------
_______________________________________________
hal mailing list
hal at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal
More information about the Hal
mailing list