Skip to contentSkip to conversation

qemu-binfmt-conf.sh: fix -F option

PATCH Superseded [email protected] 1 participant 1 message Sep 12, 2021 exec and binfmt

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 qemu-binfmt-conf.sh: fix -F option

From: Martin Wilck <[email protected]>

qemu-binfmt-conf.sh should use "-F" as short option for "--qemu-suffix". Fix the getopt call to make this work.

---
v2: fixed overlong line to make patchew bot happy. Sorry for the long
delay, I'd missed the bot's reply.

---
 scripts/qemu-binfmt-conf.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
scripts/qemu-binfmt-conf.sh +3 -1
index fb504a4..c73a785 100755
@@ -338,7 +338,9 @@ PERSISTENT=no
 PRESERVE_ARG0=no
 QEMU_SUFFIX=""
 
-options=$(getopt -o ds:Q:S:e:hc:p:g: -l debian,systemd:,qemu-path:,qemu-suffix:,exportdir:,help,credential:,persistent:,preserve-argv0: -- "$@")
+_longopts="debian,systemd:,qemu-path:,qemu-suffix:,exportdir:,help,credential:,\
+persistent:,preserve-argv0:"
+options=$(getopt -o ds:Q:S:e:hc:p:g:F: -l ${_longopts} -- "$@")
 eval set -- "$options"
 
 while true ; do
Signature · 1 line
2.33.0