From: Jaehoon Chung Date: Thu, 2 May 2024 12:04:15 +0000 (+0900) Subject: Change to execlp from execl about running command X-Git-Tag: accepted/tizen/unified/x/20240507.051023^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b579d2a054cfbfa6839725c99a37d201620c2709;p=platform%2Fcore%2Fsystem%2Fupdate-control.git 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 --- 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;