Skip to content

Commit

Permalink
openrc-run: fix check for argument count
Browse files Browse the repository at this point in the history
Signed-off-by: Anna (navi) Figueiredo Gomes <[email protected]>
  • Loading branch information
navi-desu committed Jul 21, 2024
1 parent 99a5507 commit 980bfe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/openrc-run/openrc-run.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 980bfe6

Please sign in to comment.