From 77e8ce78c111f16105a4cf1b67e8f42f88a383f5 Mon Sep 17 00:00:00 2001 From: Catherine Hoang Date: Wed, 25 Jan 2023 16:33:10 -0800 Subject: [PATCH] xfs_admin: correctly parse IO_OPTS parameters Change exec to eval so that the IO_OPTS parameters are parsed correctly when the parameters contain quotations. Fixes: e7cd89b2da72 ("xfs_admin: get UUID of mounted filesystem") Signed-off-by: Catherine Hoang Reviewed-by: Allison Henderson Reviewed-by: Carlos Maiolino Signed-off-by: Carlos Maiolino --- db/xfs_admin.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/db/xfs_admin.sh b/db/xfs_admin.sh index b73fb3adc..3a7f44ea2 100755 --- a/db/xfs_admin.sh +++ b/db/xfs_admin.sh @@ -69,7 +69,8 @@ case $# in fi if [ -n "$IO_OPTS" ]; then - exec xfs_io -p xfs_admin $IO_OPTS "$mntpt" + eval xfs_io -p xfs_admin $IO_OPTS "$mntpt" + exit $? fi fi -- 2.47.3