From e849ef385ae37b59636976586db55f0a0917f83a Mon Sep 17 00:00:00 2001 From: "Anna (navi) Figueiredo Gomes" Date: Sat, 20 Jul 2024 17:25:49 +0200 Subject: librc.c: use rc_runlevel_dir for rc_service_add Signed-off-by: Anna (navi) Figueiredo Gomes --- src/librc/librc.c | 3 +-- 1 file changed, 1 insertion(+), 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); -- cgit v1.2.3