Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 279931 - sys-apps/xinetd initscript uses bashisms
Summary: sys-apps/xinetd initscript uses bashisms
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-01 17:20 UTC by Michał Górny
Modified: 2009-10-10 23:27 UTC (History)
0 users

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


Attachments
Patch to fix the issue (xinetd.rc6.diff,537 bytes, patch)
2009-08-01 17:27 UTC, Michał Górny
Details | Diff
Diff to the ebuild (; (xinetd-2.3.14.ebuild.diff,486 bytes, patch)
2009-08-01 17:33 UTC, Michał Górny
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2009-08-01 17:20:54 UTC
Initscript provided with xinetd uses bashisms, which makes it incompatible with shells more strict than bash as OpenRC calls initscripts using /bin/sh.

The basic problem here is the workaround for bug #25754 for which I have no other solution. The good thing is that it won't stop script from working, just workaround won't work.

Simpler to fix are '&>'s.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2009-08-01 17:27:56 UTC
Created attachment 199826 [details, diff]
Patch to fix the issue

I see that workaround doesn't exist in portage… strange.

The issue is easy to fix then.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2009-08-01 17:33:02 UTC
Created attachment 199829 [details, diff]
Diff to the ebuild (;
Comment 3 SpanKY gentoo-dev 2009-08-14 04:29:15 UTC
better to drop the redirect and use the -q option instead
Comment 4 SpanKY gentoo-dev 2009-10-10 23:27:33 UTC
killall doesnt play well with openrc, so ive switched to ssd.  also makes it behave better by only killing the proper xinetd.

http://sources.gentoo.org/sys-apps/xinetd/files/xinetd.rc6?r1=1.21&r2=1.22