diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2015-03-20 09:34:00 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2015-03-20 09:34:00 +0000 |
commit | 75943dc1d530660544ee0eafa2673638e1a16604 (patch) | |
tree | 559b3b8849bbcb3970924fa2500a160eee57909b /src | |
parent | dd74c73772894c6988582eb4aec0fbaf6ed558d5 (diff) | |
download | s6-75943dc1d530660544ee0eafa2673638e1a16604.tar.xz |
Warn when s6-svc is used with several arguments
Diffstat (limited to 'src')
-rw-r--r-- | src/supervision/s6-svc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/supervision/s6-svc.c b/src/supervision/s6-svc.c index e9396de..7f3e538 100644 --- a/src/supervision/s6-svc.c +++ b/src/supervision/s6-svc.c @@ -58,6 +58,7 @@ int main (int argc, char const *const *argv, char const *const *envp) argc -= l.ind ; argv += l.ind ; } if (!argc) dieusage() ; + if (argc > 1) strerr_warn1x("ignoring extra arguments") ; if (updown[1]) { char const *newargv[11] ; |