From 415fe87d8c3a53314b662c9b0018b8205027f446 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Thu, 29 Jan 2009 13:29:04 +0000 Subject: Clean up some compiler warnings. --- src/librc/librc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/librc/librc.c') 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) { -- cgit v1.2.3