From 9dbc92a360b25446659387fadd4ab4ffb5abe76f Mon Sep 17 00:00:00 2001 From: Pablo Montes Date: Tue, 4 Feb 2025 11:16:12 +0100 Subject: [PATCH] tools: print error on mkdir On some fresh installations where XDG_CONFIG_SESSION is not defined, and $HOME/.config is not created yet, mesh-cfgclient failed with no hints. --- tools/mesh-cfgclient.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/mesh-cfgclient.c b/tools/mesh-cfgclient.c index 3bd2b673a..b1d091be7 100644 --- a/tools/mesh-cfgclient.c +++ b/tools/mesh-cfgclient.c @@ -2529,8 +2529,10 @@ static bool setup_cfg_storage(void) return false; } } else if (errno == ENOENT) { - if (mkdir(mesh_dir, 0700) != 0) + if (mkdir(mesh_dir, 0700) != 0) { + l_error("Cannot create %s", mesh_dir); return false; + } } else { perror("Cannot open config directory"); return false; -- 2.47.3