From 918d864a67fc4b94abe2d36dec32160a17eaa259 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 15 Oct 2010 20:30:03 +1100 Subject: s4-net: exit with a failure when a command is unknown this ensures we don't pass bad tests in 'make test' if they call unknown net commands --- source4/utils/net/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/utils/net') diff --git a/source4/utils/net/net.c b/source4/utils/net/net.c index 46cc07d702..95b70ef01d 100644 --- a/source4/utils/net/net.c +++ b/source4/utils/net/net.c @@ -274,7 +274,7 @@ static int net_usage(struct net_context *ctx, int argc, const char **argv) d_printf("Usage:\n"); d_printf("net [options]\n"); net_help(ctx, net_functable); - return 0; + return -1; } /**************************************************************************** -- cgit