File 1290-erts-Allow-lack-of-optional-fields-when-determining-.patch of Package erlang
From 11380e0bcc7cc4586a80b770a5ea5dad1e4408cb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?John=20H=C3=B6gberg?= <john@erlang.org>
Date: Wed, 14 Jun 2023 14:02:33 +0200
Subject: [PATCH] erts: Allow lack of optional fields when determining cgroup
type
Fixes #7401
---
erts/lib_src/common/erl_misc_utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/erts/lib_src/common/erl_misc_utils.c b/erts/lib_src/common/erl_misc_utils.c
index 62a49c5b08..4c441294ba 100644
--- a/erts/lib_src/common/erl_misc_utils.c
+++ b/erts/lib_src/common/erl_misc_utils.c
@@ -1126,7 +1126,7 @@ get_cgroup_path(const char *controller, const char **path) {
* This fails if any of the fs options contain a hyphen, but this is
* not likely to happen on a cgroup, so we just skip such lines. */
if (sscanf(line_buf,
- "%*d %*d %*d:%*d %4095s %4095s %*s %*[^-]- "
+ "%*d %*d %*d:%*d %4095s %4095s %*s%*[^-]- "
"%63s %*s %511[^\n]\n",
root_path, mount_path,
fs_type, fs_flags) != 4) {
--
2.35.3