[lxc-devel] [lxc/master] templates: avoid endless loop
brauner on Github
lxc-bot at linuxcontainers.org
Mon Aug 6 14:44:19 UTC 2018
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 381 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20180806/ca453c63/attachment.bin>
-------------- next part --------------
From 46a6646a833e26bb405c6f37d317b3b37e7b73c5 Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brauner at ubuntu.com>
Date: Mon, 6 Aug 2018 16:43:35 +0200
Subject: [PATCH] templates: avoid endless loop
Closes #2512.
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
---
templates/lxc-busybox.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/templates/lxc-busybox.in b/templates/lxc-busybox.in
index c283b00cb..7243b36ef 100644
--- a/templates/lxc-busybox.in
+++ b/templates/lxc-busybox.in
@@ -280,7 +280,7 @@ eval set -- "$options"
while true
do
case "$1" in
- -h|--help) usage exit 1;;
+ -h|--help) usage && exit 1;;
-n|--name) name=$2; shift 2;;
-p|--path) path=$2; shift 2;;
--rootfs) rootfs=$2; shift 2;;
More information about the lxc-devel
mailing list