[PATCH v2 20/27] dpkg: Use bb_system instead of system
Nadav Tasher
tashernadav at gmail.com
Tue Jan 21 22:34:59 UTC 2025
Allows for execution of the internal shell when the
FEATURE_PREFER_APPLETS config option is enabled.
Signed-off-by: Nadav Tasher <tashernadav at gmail.com>
---
archival/dpkg.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/archival/dpkg.c b/archival/dpkg.c
index 8031956e9..214c49734 100644
--- a/archival/dpkg.c
+++ b/archival/dpkg.c
@@ -1268,7 +1268,7 @@ static void run_package_script_or_die(const char *package_name, const char *scri
script_path = xasprintf("/var/lib/dpkg/info/%s.%s", package_name, script_type);
/* If the file doesn't exist it isn't fatal */
- result = access(script_path, F_OK) ? EXIT_SUCCESS : system(script_path);
+ result = access(script_path, F_OK) ? EXIT_SUCCESS : bb_system(script_path);
free(script_path);
if (result)
bb_error_msg_and_die("%s failed, exit code %d", script_type, result);
--
2.43.0
More information about the busybox
mailing list