Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 178767 - hamachi init.d uses bashisms
Summary: hamachi init.d 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: Caleb Tennis (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-16 13:36 UTC by Mike McQuaid
Modified: 2007-05-18 12:34 UTC (History)
2 users (show)

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 Mike McQuaid 2007-05-16 13:36:53 UTC
/usr/bin/hamachi-init -c $CONFDIR 2>&1> /dev/null
used on line 41 of /etc/init.d/hamachi and causes a failure on busybox/dash.

Needs replaced with more compatible version, e.g.:
/usr/bin/hamachi-init -c $CONFDIR > /dev/null 2>&1

Reproducible: Always

Steps to Reproduce:
Comment 1 Harald van Dijk (RETIRED) gentoo-dev 2007-05-17 10:23:17 UTC
Eh? The second version discards both stderr and stdout, while the original version redirects stderr to stdout, and discards the original stdout. They're not the same. The first version can simply be rewritten as 2>&1 >/dev/null (moving the space) to make it work on dash.
Comment 2 Mike McQuaid 2007-05-17 10:55:57 UTC
Sorry I wasn't entirely sure what was intended there and just assumed both were meant to point to /dev/null.
Comment 3 Caleb Tennis (RETIRED) gentoo-dev 2007-05-18 12:34:29 UTC
fixed in portage.