From b579d2a054cfbfa6839725c99a37d201620c2709 Mon Sep 17 00:00:00 2001 From: Jaehoon Chung Date: Thu, 2 May 2024 21:04:15 +0900 Subject: [PATCH] Change to execlp from execl about running command To prevent Svace issue, use execlp instead of execl. Change-Id: I067bef505796cf2d0a391ead1ab7d1c8f3ad3cbf Signed-off-by: Jaehoon Chung --- tools/osu/resize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/osu/resize.c b/tools/osu/resize.c index 3462b76..dc99f99 100644 --- a/tools/osu/resize.c +++ b/tools/osu/resize.c @@ -106,7 +106,7 @@ static int run_resize(const char *dev_name) } if (pid == 0) { - execl("/sbin/resize2fs", "resize2fs", dev_name, NULL); + execlp("/sbin/resize2fs", "resize2fs", dev_name, NULL); } else { int r, status; bool is_ok; -- 2.34.1