aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCatherine Hoang <catherine.hoang@oracle.com>2023-01-25 16:33:10 -0800
committerCarlos Maiolino <cem@kernel.org>2023-02-03 13:55:02 +0100
commit77e8ce78c111f16105a4cf1b67e8f42f88a383f5 (patch)
treef60634debc4e9dfc77b0a678f67c17aeb271a0fb
parentd8eab7600f470fbd09013eb90cbc7c5e271da4e5 (diff)
downloadxfsprogs-dev-77e8ce78c111f16105a4cf1b67e8f42f88a383f5.tar.gz
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 <catherine.hoang@oracle.com> Reviewed-by: Allison Henderson <allison.henderson@oracle.com> Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com> Signed-off-by: Carlos Maiolino <cem@kernel.org>
-rwxr-xr-xdb/xfs_admin.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/db/xfs_admin.sh b/db/xfs_admin.sh
index b73fb3adc2..3a7f44ea25 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