this is related to the bug
http://sourceforge.net/tracker/?func=detail&aid=
3113612&group_id=163076&atid=826303
that suggested to modify bash lxc script to properly use "$@" in place of "$*"
Signed-off-by: Michel Normand <michel.mno@free.fr>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
fi
}
-ls $* $lxcpath
+ls "$@" $lxcpath
active=$(netstat -xa | grep $lxcpath | \
sed -e 's#.*'"$lxcpath/"'\(.*\)/command#\1#');
if test -n "$active"; then
get_cgroup
if test -n "$mount_point"; then
- cd $mount_point; ls $* -d $active
+ cd $mount_point; ls "$@" -d $active
fi
fi
exit 1
fi
-for i in $*; do
+for i in "$@"; do
case $i in
-h|--help)
help; exit 1;;
done
if [ -z "$exec" ]; then
- exec @BINDIR@/lxc-unshare -s MOUNT -- $0 -n $name --exec $*
+ exec @BINDIR@/lxc-unshare -s MOUNT -- $0 -n $name --exec "$@"
fi
if [ -z "$name" ]; then
fi
mount --bind /proc/$pid/net /proc/$$/net && \
- exec netstat $*
+ exec netstat "$@"
exit 1
fi
-set -- $(getopt dh $*)
+set -- $(getopt dh "$@")
-for i in $*; do
+for i in "$@"; do
case "$1" in
-d)
LXC_DROP_CAPS="yes"
exit 1
fi
-set -- $(getopt dh $*)
+set -- $(getopt dh "$@")
-for i in $*; do
+for i in "$@"; do
case "$1" in
-d)
LXC_DROP_CAPS="yes"
lxc_setuid
else
lxc_dropuid
-fi
\ No newline at end of file
+fi