commit 75943dc1d530660544ee0eafa2673638e1a16604
parent dd74c73772894c6988582eb4aec0fbaf6ed558d5
Author: Laurent Bercot <ska-skaware@skarnet.org>
Date: Fri, 20 Mar 2015 09:34:00 +0000
Warn when s6-svc is used with several arguments
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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] ;