From da1a97b7e2889844afa57d945ed2ac7b24e38868 Mon Sep 17 00:00:00 2001 From: Hiroshi Hatake Date: Tue, 19 Nov 2024 18:59:55 +0900 Subject: [PATCH] node_exporter_metrics: Use real_path for complaining on glob error Signed-off-by: Hiroshi Hatake --- plugins/in_node_exporter_metrics/ne_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/in_node_exporter_metrics/ne_utils.c b/plugins/in_node_exporter_metrics/ne_utils.c index e54a2e862b8..7206f60bbd7 100644 --- a/plugins/in_node_exporter_metrics/ne_utils.c +++ b/plugins/in_node_exporter_metrics/ne_utils.c @@ -302,7 +302,7 @@ int ne_utils_path_scan(struct flb_ne *ctx, const char *mount, const char *path, flb_plg_error(ctx->ins, "no memory space available"); return -1; case GLOB_ABORTED: - flb_plg_error(ctx->ins, "read error, check permissions: %s", path); + flb_plg_error(ctx->ins, "read error, check permissions: %s", real_path); return -1;; case GLOB_NOMATCH: ret = stat(path, &st);