From 1141d970b111af0307ed323b85ae9cc7edc8f97e Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 18 Jun 2015 10:39:48 +0000 Subject: Fix arg handling --- src/s6-rc/s6-rc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/s6-rc/s6-rc.c b/src/s6-rc/s6-rc.c index 327fc06..8e8ba32 100644 --- a/src/s6-rc/s6-rc.c +++ b/src/s6-rc/s6-rc.c @@ -378,7 +378,7 @@ int main (int argc, char const *const *argv) else deadline = tain_infinite_relative ; } if (!argc) dieusage() ; - what = parse_command(argv[0]) ; + what = parse_command(*argv++) ; if (!what) { print_help() ; -- cgit v1.2.3