initctl: fix regression in error handling, cmmmit 4542fdb

Issue #339

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2023-03-19 08:32:06 +01:00
1 parent 1d7048d3ae
commit 9354221bdd
1 file changed
+1 -2
+1 -2
View File
@@ -277,9 +277,8 @@ int serv_enable(char *arg)
char argpath[arglen + 1], path[len + 1];
snprintf(path, sizeof(path), "%s/available/%s", finit_rcsd, arg);
if (!fexist(path))
ERRX(72, "cannot find %s", conf(path, sizeof(path), arg, 0));
ERRX(72, "cannot find %s", path);
snprintf(argpath, sizeof(argpath), "%s/enabled/%s", finit_rcsd, arg);
if (fexist(argpath))