aboutsummaryrefslogtreecommitdiff
path: root/src/openrc-run/openrc-run.c
diff options
context:
space:
mode:
authorAnna (navi) Figueiredo Gomes <navi@vlhl.dev>2024-07-21 12:08:47 +0200
committerAnna (navi) Figueiredo Gomes <navi@vlhl.dev>2024-07-21 12:08:47 +0200
commit980bfe6b9ca24616e20eef75ebab906ba3fa7089 (patch)
tree31c065ee04793d9dfbacb9b5bcaaaf309a96b43c /src/openrc-run/openrc-run.c
parent99a550742691233cf12817904d4b276b616f27a5 (diff)
openrc-run: fix check for argument count
Signed-off-by: Anna (navi) Figueiredo Gomes <navi@vlhl.dev>
Diffstat (limited to 'src/openrc-run/openrc-run.c')
-rw-r--r--src/openrc-run/openrc-run.c2
1 files changed, 1 insertions, 1 deletions
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 */