aboutsummaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2026-02-06 13:16:36 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2026-02-06 13:16:36 +0100
commitc8cbd3516d85e029b17d17c27d249ea727df3db9 (patch)
treee3696dc8a0449ee736bbebfbb518c672f6e9dc72 /util-linux
parent9b2a50efe227048e3d5029148619d5cc5ad089be (diff)
downloadbusybox-w32-c8cbd3516d85e029b17d17c27d249ea727df3db9.tar.gz
busybox-w32-c8cbd3516d85e029b17d17c27d249ea727df3db9.tar.bz2
busybox-w32-c8cbd3516d85e029b17d17c27d249ea727df3db9.zip
*: use xasprintf_inplace() and concat_path_file() where appropriate
function old new delta acpid_main 1059 1063 +4 resume_main 561 560 -1 unpack_package 642 640 -2 adduser_main 861 859 -2 getty_main 1517 1512 -5 ftpd_main 2149 2142 -7 .rodata 107018 107010 -8 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/6 up/down: 4/-25) Total: -21 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/acpid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/acpid.c b/util-linux/acpid.c
index 5c0bb1768..386b988d2 100644
--- a/util-linux/acpid.c
+++ b/util-linux/acpid.c
@@ -145,7 +145,7 @@ struct globals {
145static void process_event(const char *event) 145static void process_event(const char *event)
146{ 146{
147 struct stat st; 147 struct stat st;
148 char *handler = xasprintf("./%s", event); 148 char *handler = concat_path_file(".", event);
149 const char *args[] = { "run-parts", handler, NULL }; 149 const char *args[] = { "run-parts", handler, NULL };
150 150
151 // log the event 151 // log the event