aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna (navi) Figueiredo Gomes <navi@vlhl.dev>2024-07-20 17:25:49 +0200
committerAnna (navi) Figueiredo Gomes <navi@vlhl.dev>2024-07-20 18:09:53 +0200
commite849ef385ae37b59636976586db55f0a0917f83a (patch)
tree648e8cf203eafad841c2ebe6b3f400c105b69205
parentdf50d8958991a787dfe4399b4d5b1b0c82ac3141 (diff)
librc.c: use rc_runlevel_dir for rc_service_add
Signed-off-by: Anna (navi) Figueiredo Gomes <navi@vlhl.dev>
-rw-r--r--src/librc/librc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/librc/librc.c b/src/librc/librc.c
index ee728b30..f45cc859 100644
--- a/src/librc/librc.c
+++ b/src/librc/librc.c
@@ -1296,8 +1296,7 @@ rc_service_add(const char *runlevel, const char *service)
i = binit;
}
- xasprintf(&file, "%s/%s/%s", RC_RUNLEVELDIR, runlevel,
- basename_c(service));
+ xasprintf(&file, "%s/%s/%s", rc_runlevel_dir(), runlevel, basename_c(service));
retval = (symlink(i, file) == 0);
free(file);
free(binit);