diff options
author | Anna (navi) Figueiredo Gomes <navi@vlhl.dev> | 2023-06-13 08:09:22 -0300 |
---|---|---|
committer | Anna (navi) Figueiredo Gomes <navi@vlhl.dev> | 2023-10-19 10:56:54 +0200 |
commit | 3538d3bd1b0f979aa607fa3b0eecfd3e5dd893ae (patch) | |
tree | f22d2a4ae6a0c42b0625bc63838a446ace38fa42 /src/librc | |
parent | 5a1cd9545164d978ded996ac6d673fd6d480a2fe (diff) |
librc: add paths to errorx mkdir calls
Signed-off-by: Anna (navi) Figueiredo Gomes <navi@vlhl.dev>
Diffstat (limited to 'src/librc')
-rw-r--r-- | src/librc/librc.c | 16 |
1 files 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); } |