diff options
author | Anna (navi) Figueiredo Gomes <navi@vlhl.dev> | 2024-07-20 17:25:49 +0200 |
---|---|---|
committer | Anna (navi) Figueiredo Gomes <navi@vlhl.dev> | 2024-07-20 18:09:53 +0200 |
commit | e849ef385ae37b59636976586db55f0a0917f83a (patch) | |
tree | 648e8cf203eafad841c2ebe6b3f400c105b69205 /src/librc | |
parent | df50d8958991a787dfe4399b4d5b1b0c82ac3141 (diff) |
librc.c: use rc_runlevel_dir for rc_service_add
Signed-off-by: Anna (navi) Figueiredo Gomes <navi@vlhl.dev>
Diffstat (limited to 'src/librc')
-rw-r--r-- | src/librc/librc.c | 3 |
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); |