Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 184316 - sys-cluster/util-vserver init.d script is not POSIX compliant
Summary: sys-cluster/util-vserver init.d script is not POSIX compliant
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Gentoo VPS Team (OBSOLETE)
URL: http://svn.linux-vserver.org/projects...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-05 16:05 UTC by Natanael Copa
Modified: 2007-09-02 20:30 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 Natanael Copa 2007-07-05 16:05:22 UTC
Trivial to fix:

--- data.orig/etc/init.d/vprocunhide    2007-07-05 15:42:05 +0000
+++ data/etc/init.d/vprocunhide 2007-07-05 17:01:48 +0000
@@ -4,13 +4,13 @@
 
 start() {
        : ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
-       if [[ ! -e ${UTIL_VSERVER_VARS} ]]; then
+       if [ ! -e "${UTIL_VSERVER_VARS}" ]; then
                eerror "Cannot find util-vserver installation"
                eerror "(the file '$UTIL_VSERVER_VARS' would be expected)"
                return 1
        fi
 
-       source ${UTIL_VSERVER_VARS}
+       . "${UTIL_VSERVER_VARS}"
 
        ebegin "Fixing /proc entries visibility"
        ${_VPROCUNHIDE}
Comment 1 Christian Heim (RETIRED) gentoo-dev 2007-08-16 20:07:53 UTC
Thanks for the patch Natanael, looks like it is already upstream.
Comment 2 Benedikt Böhm (RETIRED) gentoo-dev 2007-09-02 20:30:31 UTC
fixed in 0.30.214