summaryrefslogtreecommitdiffstats
path: root/ubuntu/precise/tdeutils/debian/patches/01-klaptopdaemon-setuphandler.diff
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-09-10 16:16:32 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-09-10 16:16:32 -0500
commit02dc85a95b228b7242b0d11ea35619faad96db03 (patch)
treee161ba877a0720bbdf7818bdec06eb239d8ad271 /ubuntu/precise/tdeutils/debian/patches/01-klaptopdaemon-setuphandler.diff
parent6f2c7dc70e77d2f768d687838b6cc9f7632f609e (diff)
downloadtde-packaging-02dc85a95b228b7242b0d11ea35619faad96db03.tar.gz
tde-packaging-02dc85a95b228b7242b0d11ea35619faad96db03.zip
Split precise from maverick
Diffstat (limited to 'ubuntu/precise/tdeutils/debian/patches/01-klaptopdaemon-setuphandler.diff')
-rw-r--r--ubuntu/precise/tdeutils/debian/patches/01-klaptopdaemon-setuphandler.diff35
1 files changed, 35 insertions, 0 deletions
diff --git a/ubuntu/precise/tdeutils/debian/patches/01-klaptopdaemon-setuphandler.diff b/ubuntu/precise/tdeutils/debian/patches/01-klaptopdaemon-setuphandler.diff
new file mode 100644
index 000000000..a794f17ff
--- /dev/null
+++ b/ubuntu/precise/tdeutils/debian/patches/01-klaptopdaemon-setuphandler.diff
@@ -0,0 +1,35 @@
+diff --git a/klaptopdaemon/acpi.cpp b/klaptopdaemon/acpi.cpp
+index 4dfb247..cd8f4b0 100644
+--- a/klaptopdaemon/acpi.cpp
++++ b/klaptopdaemon/acpi.cpp
+@@ -178,7 +178,7 @@ void AcpiConfig::setupHelper()
+ proc << tdesu;
+ proc << "-u";
+ proc << "root";
+- proc << "chown root "+helper+"; chmod +s "+helper;
++ proc << "dpkg-statoverride --update --add root root 6755 "+helper;
+ proc.start(KProcess::Block); // run it sync so has_acpi below sees the results
+ }
+ } else {
+diff --git a/klaptopdaemon/apm.cpp b/klaptopdaemon/apm.cpp
+index 9de0c85..e348943 100644
+--- a/klaptopdaemon/apm.cpp
++++ b/klaptopdaemon/apm.cpp
+@@ -166,7 +166,7 @@ void ApmConfig::setupHelper()
+ proc << tdesu;
+ proc << "-u";
+ proc << "root";
+- proc << TQString("chown root ")+apm_name+TQString("; chmod +s ")+apm_name;
++ proc << TQString("dpkg-statoverride --update --add root root 6755 ")+apm_name;
+ proc.start(KProcess::Block); // run it sync so has_apm below sees the results
+ }
+ } else {
+@@ -200,7 +200,7 @@ void ApmConfig::setupHelper2() // we use the acpi helper to do software suspend
+ proc << tdesu;
+ proc << "-u";
+ proc << "root";
+- proc << "chown root "+helper+"; chmod +s "+helper;
++ proc << "dpkg-statoverride --update --add root root 6755 "+helper;
+ proc.start(KProcess::Block); // run it sync so has_acpi below sees the results
+ }
+ } else {