summaryrefslogtreecommitdiffstats
path: root/dilos/tdeutils/debian/patches/01-klaptopdaemon-setuphandler.diff
diff options
context:
space:
mode:
authorDenis Kozadaev <denis@dilos.org>2020-01-30 22:13:12 +0300
committerSlávek Banko <slavek.banko@axis.cz>2020-03-08 01:58:20 +0100
commitc1251c5abd9f8eb4a0256a7a92f72aa7aa8518eb (patch)
treeb33c2a6a7020f677cb58899884cb349bfe223ad0 /dilos/tdeutils/debian/patches/01-klaptopdaemon-setuphandler.diff
parent152db2820bbff10ccebcb24ed940cb051ba8ecf6 (diff)
downloadtde-packaging-c1251c5abd9f8eb4a0256a7a92f72aa7aa8518eb.tar.gz
tde-packaging-c1251c5abd9f8eb4a0256a7a92f72aa7aa8518eb.zip
DilOS: tdeutils build pack
Signed-off-by: Denis Kozadaev <denis@dilos.org>
Diffstat (limited to 'dilos/tdeutils/debian/patches/01-klaptopdaemon-setuphandler.diff')
-rw-r--r--dilos/tdeutils/debian/patches/01-klaptopdaemon-setuphandler.diff35
1 files changed, 35 insertions, 0 deletions
diff --git a/dilos/tdeutils/debian/patches/01-klaptopdaemon-setuphandler.diff b/dilos/tdeutils/debian/patches/01-klaptopdaemon-setuphandler.diff
new file mode 100644
index 000000000..3837407f6
--- /dev/null
+++ b/dilos/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(TDEProcess::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(TDEProcess::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(TDEProcess::Block); // run it sync so has_acpi below sees the results
+ }
+ } else {