From 3538d3bd1b0f979aa607fa3b0eecfd3e5dd893ae Mon Sep 17 00:00:00 2001 From: "Anna (navi) Figueiredo Gomes" Date: Tue, 13 Jun 2023 08:09:22 -0300 Subject: librc: add paths to errorx mkdir calls Signed-off-by: Anna (navi) Figueiredo Gomes --- src/librc/librc.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/librc/librc.c b/src/librc/librc.c index 938e0ace..fa2df683 100644 --- a/src/librc/librc.c +++ b/src/librc/librc.c @@ -380,44 +380,44 @@ rc_set_user(void) * */ path = rc_sysconfdir(); if (mkdir(path, 0700) != 0 && errno != EEXIST) { - eerrorx("mkdir: %s", strerror(errno)); + eerrorx("mkdir: %s, %s", tmp, strerror(errno)); } xasprintf(&tmp, "%s/%s", path, RC_INITDIR_FOLDER); if (mkdir(tmp, 0700) != 0 && errno != EEXIST) { - eerrorx("mkdir: %s", strerror(errno)); + eerrorx("mkdir: %s, %s", tmp, strerror(errno)); } free(tmp); xasprintf(&tmp, "%s/%s", path, RC_CONFDIR_FOLDER); if (mkdir(tmp, 0700) != 0 && errno != EEXIST) { - eerrorx("mkdir: %s", strerror(errno)); + eerrorx("mkdir: %s, %s", tmp, strerror(errno)); } free(tmp); xasprintf(&tmp, "%s/%s", path, RC_RUNLEVELDIR_FOLDER); if (mkdir(tmp, 0700) != 0 && errno != EEXIST) { - eerrorx("mkdir: %s", strerror(errno)); + eerrorx("mkdir: %s, %s", tmp, strerror(errno)); } free(tmp); xasprintf(&tmp, "%s/%s/%s", path, RC_RUNLEVELDIR_FOLDER, RC_LEVEL_DEFAULT); if (mkdir(tmp, 0700) != 0 && errno != EEXIST) { - eerrorx("mkdir: %s", strerror(errno)); + eerrorx("mkdir: %s, %s", tmp, strerror(errno)); } free(tmp); xasprintf(&tmp, "%s/%s/%s", path, RC_RUNLEVELDIR_FOLDER, RC_LEVEL_USERNONE); if (mkdir(tmp, 0700) != 0 && errno != EEXIST) { - eerrorx("mkdir: %s", strerror(errno)); + eerrorx("mkdir: %s, %s", tmp, strerror(errno)); } free(tmp); free(path); path = rc_cachedir(); if (mkdir(path, 0700) != 0 && errno != EEXIST) { - eerrorx("mkdir: %s", strerror(errno)); + eerrorx("mkdir: %s, %s", path, strerror(errno)); } free(path); path = rc_svcdir(); if (mkdir(path, 0700) != 0 && errno != EEXIST) { - eerrorx("mkdir: %s", strerror(errno)); + eerrorx("mkdir: %s, %s", path, strerror(errno)); } free(path); } -- cgit v1.2.3