From 75943dc1d530660544ee0eafa2673638e1a16604 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 20 Mar 2015 09:34:00 +0000 Subject: Warn when s6-svc is used with several arguments --- src/supervision/s6-svc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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] ; -- cgit v1.2.3