From 980bfe6b9ca24616e20eef75ebab906ba3fa7089 Mon Sep 17 00:00:00 2001 From: "Anna (navi) Figueiredo Gomes" Date: Sun, 21 Jul 2024 12:08:47 +0200 Subject: openrc-run: fix check for argument count Signed-off-by: Anna (navi) Figueiredo Gomes --- src/openrc-run/openrc-run.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/openrc-run/openrc-run.c') diff --git a/src/openrc-run/openrc-run.c b/src/openrc-run/openrc-run.c index 11c38017..54745bf1 100644 --- a/src/openrc-run/openrc-run.c +++ b/src/openrc-run/openrc-run.c @@ -1249,7 +1249,7 @@ int main(int argc, char **argv) atexit(cleanup); - if (argc < 3) + if (argc < 2) usage(EXIT_FAILURE); /* Change dir to / to ensure all init scripts don't use stuff in pwd */ -- cgit v1.2.3