Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 179634 - app-misc/lirc: irexec init script uses bashisms ([[ ]])
Summary: app-misc/lirc: irexec init script uses bashisms ([[ ]])
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Television related Applications in Gentoo's Portage
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-24 13:01 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2007-05-24 20:12 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2007-05-24 13:01:19 UTC
The irexec init script currently uses bashisms that are incompatible with FreeBSD's sh (and dash/busybox for Linux users). The problem is the line

if [[ ${IREXEC_USER} == "root" && ${IREXEC_DISABLE_ROOT_WARNING} != yes ]]; then

that should instead become something like

if [ "x${IREXEC_USER}" = "xroot" -a "x${IREXEC_DISABLE_ROOT_WARNING}" != "xyes" ]; then

This will work on every shell and should then be safer.

HTH,
Diego
Comment 1 Matthias Schwarzott gentoo-dev 2007-05-24 20:12:23 UTC
Commited.