[git commit] bootchartd: check the result of opendir("/proc")
Denys Vlasenko
vda.linux at googlemail.com
Sat Jul 19 00:26:20 UTC 2025
commit: https://git.busybox.net/busybox/commit/?id=94591a103038db3a336879c6d444162c1f467342
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
init/bootchartd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/init/bootchartd.c b/init/bootchartd.c
index 0929890a3..a5447c6ad 100644
--- a/init/bootchartd.c
+++ b/init/bootchartd.c
@@ -133,7 +133,7 @@ static void dump_file(FILE *fp, const char *filename)
static int dump_procs(FILE *fp, int look_for_login_process)
{
struct dirent *entry;
- DIR *dir = opendir("/proc");
+ DIR *dir = xopendir("/proc");
int found_login_process = 0;
fputs(G.jiffy_line, fp);
More information about the busybox-cvs
mailing list