From 1221a1ea4a21eb933c514c247e09e635a45f5fa0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Fri, 20 Jan 2017 04:33:44 +0900 Subject: [PATCH] - mksh does not pass fds opened with exec redirecton to process --- laptop-mode-tools.spec | 2 ++ no-exec-redirection.patch | 8 ++++++++ 2 files changed, 10 insertions(+) create mode 100644 no-exec-redirection.patch diff --git a/laptop-mode-tools.spec b/laptop-mode-tools.spec index 564d6ca..736c6ec 100644 --- a/laptop-mode-tools.spec +++ b/laptop-mode-tools.spec @@ -24,6 +24,7 @@ Group: Applications/System Source0: https://github.com/rickysarraf/laptop-mode-tools/archive/%{version}.tar.gz # Source0-md5: 8b9a2d9db7dd9d0a99b635a1185f292c Source1: %{name}.init +Patch0: no-exec-redirection.patch URL: https://github.com/rickysarraf/laptop-mode-tools BuildRequires: rpm-pythonprov BuildRequires: rpmbuild(macros) >= 1.714 @@ -100,6 +101,7 @@ GUI dla narzędzi do trybu laptopowego. %prep %setup -q +%patch0 -p1 %{__sed} -i -e 's|/usr/bin/env python2|/usr/bin/python|' gui/LMT.py diff --git a/no-exec-redirection.patch b/no-exec-redirection.patch new file mode 100644 index 0000000..2ec3e06 --- /dev/null +++ b/no-exec-redirection.patch @@ -0,0 +1,8 @@ +--- laptop-mode-tools-1.71/usr/sbin/laptop_mode~ 2017-01-12 17:06:23.000000000 +0900 ++++ laptop-mode-tools-1.71/usr/sbin/laptop_mode 2017-01-20 04:32:11.006938756 +0900 +@@ -1,4 +1,4 @@ +-#! /bin/sh ++#! /bin/bash + # + # Script to start or stop laptop_mode, and to control various settings of the + # kernel, hardware etc. that influence power consumption. -- 2.44.0