]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
checkonfig: Fixed compatible with toybox/gunzip 4618/head
authorHong YANG <hong.yang3@nio.com>
Thu, 4 Dec 2025 03:03:04 +0000 (11:03 +0800)
committerHong YANG <hong.yang3@nio.com>
Thu, 4 Dec 2025 03:09:55 +0000 (11:09 +0800)
gunzip in Android/toybox has no -q option.

Signed-off-by: Hong YANG <hong.yang3@nio.com>
src/lxc/cmd/lxc-checkconfig.in

index aecb296e3814f653a5ac6e9bab05d661c862ace2..3d0190551e6b90b15f3d47b147ef50e8f817bda2 100755 (executable)
@@ -103,7 +103,7 @@ if [ ! -f "${CONFIG}" ]; then
     fi
 fi
 
-if gunzip -tq < "$CONFIG" 2>/dev/null; then
+if gunzip -t < "$CONFIG" >/dev/null 2>&1; then
     GREP="zgrep"
 fi