Summary: | sci-misc/boinc initscript is not /bin/sh-compliant | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Michał Górny <mgorny> |
Component: | Current packages | Assignee: | Tomáš Chvátal (RETIRED) <scarabeus> |
Status: | RESOLVED FIXED | ||
Severity: | minor | CC: | sci |
Priority: | High | Keywords: | InVCS |
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Patch to fix init.d script |
Description
Michał Górny
![]() ![]() ![]() ![]() Created attachment 198884 [details, diff]
Patch to fix init.d script
I've replaced all '[[' occurences with standard '['; broken down '-a' within '[' to two tests (it's an XSI extension); added quoting in many places to avoid problems with spaces (especially in filenames and all user-supplied values).
I've also removed all 'pushd's and replaced them with standard 'cd'. I don't see any reason to use them as init.d scripts are called as a subshell and thus parent shell remains in the same dir. Moreover, one of those 'pushd's had no 'popd' (;.
Thanks for patch. Added to the cvs :] |