]> git.pld-linux.org Git - packages/acpid.git/blame - acpid-powersh_fix.patch
- up to 1.0.10, fixes CVE-2009-0798
[packages/acpid.git] / acpid-powersh_fix.patch
CommitLineData
921dad97 1diff -urN acpid.orig/samples/acpi_handler.sh acpid-1.0.2/samples/acpi_handler.sh
2--- acpid.orig/samples/acpi_handler.sh 2001-08-13 19:45:25.000000000 +0200
f5b9818c 3+++ acpid-1.0.2/samples/acpi_handler.sh 2003-09-22 21:07:13.974984824 +0200
1294fa0c 4@@ -11,6 +11,8 @@
5 case "$2" in
6 power) /sbin/init 0
f5b9818c 7 ;;
f5b9818c 8+ sleep) logger "ACPI sleep action on $2 is not defined"
9+ ;;
1294fa0c 10 *) logger "ACPI action $2 is not defined"
11 ;;
12 esac
921dad97 13diff -urN acpid.orig/samples/sample.conf acpid-1.0.2/samples/sample.conf
14--- acpid.orig/samples/sample.conf 2001-08-16 23:39:00.000000000 +0200
f5b9818c 15+++ acpid-1.0.2/samples/sample.conf 2003-09-22 21:07:26.895020680 +0200
921dad97 16@@ -1,4 +1,4 @@
17 # This is a sample ACPID configuration
18
19-# event=button power.*
20-# action=/usr/local/bin/power.sh "%e"
21+# event=power
f5b9818c 22+# action=/usr/sbin/power.sh "`echo "%e" | sed -e "s,\/,\ ,"`"
This page took 0.057424 seconds and 4 git commands to generate.