summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2015-06-18 10:39:48 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2015-06-18 10:39:48 +0000
commit1141d970b111af0307ed323b85ae9cc7edc8f97e (patch)
tree971cd15577a5554221368b35aaae96ad7f1a950c /src
parent2b3e2bb2d4c5fb0185a42b50354278fea97aa817 (diff)
downloads6-rc-1141d970b111af0307ed323b85ae9cc7edc8f97e.tar.xz
Fix arg handling
Diffstat (limited to 'src')
-rw-r--r--src/s6-rc/s6-rc.c2
1 files changed, 1 insertions, 1 deletions
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() ;