aboutsummaryrefslogtreecommitdiff
path: root/src/librc/librc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/librc/librc.c')
-rw-r--r--src/librc/librc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/librc/librc.c b/src/librc/librc.c
index b355d7f5..204e07f3 100644
--- a/src/librc/librc.c
+++ b/src/librc/librc.c
@@ -555,7 +555,8 @@ rc_service_mark(const char *service, const RC_SERVICE state)
RC_SVCDIR "/%s/%s",
rc_parse_service_state(RC_SERVICE_WASINACTIVE),
base);
- symlink(init, was);
+ if (symlink(init, was) == -1)
+ return false;
skip_wasinactive = true;
}
if (unlink(file) == -1) {