Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 20852

Summary: acpid does not pass the "full" kernel message to the helper applications defined in the config files
Product: Gentoo Linux Reporter: David Mott <david>
Component: New packagesAssignee: Hanno Böck <hanno>
Status: RESOLVED FIXED    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: An ebuild to use the patch
An ebuild to use the patch
Patch - adds one line to the source to fix this major 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.