diff options
author | Matthias Schwarzott <zzam@gentoo.org> | 2007-05-24 20:12:16 +0000 |
---|---|---|
committer | Matthias Schwarzott <zzam@gentoo.org> | 2007-05-24 20:12:16 +0000 |
commit | 2d86f6e29373a1d7b53705152e293113e26b513a (patch) | |
tree | e2c26a45c2b77a8ac72e03ed8bfa5b27650a8d4d /app-misc/lirc | |
parent | Stable on ppc; bug #178510. (diff) | |
download | gentoo-2-2d86f6e29373a1d7b53705152e293113e26b513a.tar.gz gentoo-2-2d86f6e29373a1d7b53705152e293113e26b513a.tar.bz2 gentoo-2-2d86f6e29373a1d7b53705152e293113e26b513a.zip |
Fixed irexec initscript to work with non-bash shells, Bug #179634.
(Portage version: 2.1.2.7)
Diffstat (limited to 'app-misc/lirc')
-rw-r--r-- | app-misc/lirc/ChangeLog | 5 | ||||
-rwxr-xr-x | app-misc/lirc/files/irexec-initd | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/app-misc/lirc/ChangeLog b/app-misc/lirc/ChangeLog index 854f6e4c735c..d2b43eda0967 100644 --- a/app-misc/lirc/ChangeLog +++ b/app-misc/lirc/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for app-misc/lirc # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/ChangeLog,v 1.142 2007/05/18 20:54:13 zzam Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/ChangeLog,v 1.143 2007/05/24 20:12:16 zzam Exp $ + + 24 May 2007; Matthias Schwarzott <zzam@gentoo.org> files/irexec-initd: + Fixed irexec initscript to work with non-bash shells, Bug #179634. 18 May 2007; Matthias Schwarzott <zzam@gentoo.org> metadata.xml: Assigned to herd media-tv. diff --git a/app-misc/lirc/files/irexec-initd b/app-misc/lirc/files/irexec-initd index 51e241976bb8..e1defeeaa83f 100755 --- a/app-misc/lirc/files/irexec-initd +++ b/app-misc/lirc/files/irexec-initd @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 2003 Martin Hierling <mad@cc.fh-lippe.de> # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/files/irexec-initd,v 1.2 2006/12/02 12:04:13 zzam Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-misc/lirc/files/irexec-initd,v 1.3 2007/05/24 20:12:16 zzam Exp $ : ${IREXEC_USER:=root} @@ -10,7 +10,7 @@ depend() { } start() { - if [[ ${IREXEC_USER} == "root" && ${IREXEC_DISABLE_ROOT_WARNING} != yes ]]; then + if [ "x${IREXEC_USER}" = "xroot" -a "x${IREXEC_DISABLE_ROOT_WARNING}" != "xyes" ]; then ewarn "Warning: Running irexec as root can open security holes" fi |