Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 20852 - acpid does not pass the "full" kernel message to the helper applications defined in the config files
Summary: acpid does not pass the "full" kernel message to the helper applications defi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Hanno Böck
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-12 11:01 UTC by David Mott
Modified: 2003-05-14 14:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
An ebuild to use the patch (acpid-1.0.1-r2.ebuild,1.07 KB, text/plain)
2003-05-12 11:02 UTC, David Mott
Details
An ebuild to use the patch (acpid-1.0.1-r2.ebuild,1.07 KB, text/plain)
2003-05-12 11:02 UTC, David Mott
Details
Patch - adds one line to the source to fix this major bug (acpid-1.0.1-correct-e-interpretation.patch,400 bytes, patch)
2003-05-12 11:04 UTC, David Mott
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Mott 2003-05-12 11:01:09 UTC
The manpage for acpid says that %e in the config files gets expanded to the kernel 
message sent to acpid. Because of an uninitialised size(of the string) in the code this is 
a random amount of the message. (Usually either "" or " " or a single character). This 
means the program is basically useless because no message parsing is possible. 
 
 
 

Reproducible: Always
Steps to Reproduce:
1. Compile and run the daemon 
2. Create acpi events while watching the syslog 
3. 
Actual Results:  
for undefined events the message will be meaningless (ie no actual info is given) 

Expected Results:  
Given info as to what event actually occurred (via the default rule)
Comment 1 David Mott 2003-05-12 11:02:30 UTC
Created attachment 11822 [details]
An ebuild to use the patch
Comment 2 David Mott 2003-05-12 11:02:44 UTC
Created attachment 11823 [details]
An ebuild to use the patch
Comment 3 David Mott 2003-05-12 11:04:16 UTC
Created attachment 11824 [details, diff]
Patch - adds one line to the source to fix this major bug
Comment 4 Hanno Böck gentoo-dev 2003-05-13 13:29:09 UTC
This looks for me as an acpid-bug. Did you send your patch to the acpid-author?
Comment 5 Hanno Böck gentoo-dev 2003-05-13 14:42:14 UTC
Okay, the acpid-author is working on this and will release a new version within a few days. I'll wait for that and then update the ebuild.
Comment 6 David Mott 2003-05-14 02:57:40 UTC
Got the patch from the acpid website... 
 
Thought I would add it here as I didn't know how long til its fixed upstream. 
Comment 7 Hanno Böck gentoo-dev 2003-05-14 14:40:15 UTC
acpid 1.0.2 is out and added to portage.