diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-10-15 20:30:03 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-10-15 09:32:03 +0000 |
commit | 918d864a67fc4b94abe2d36dec32160a17eaa259 (patch) | |
tree | 27324a6c61840ff4b086bf7f0f9a28f8c81bc7eb | |
parent | add7ddb2e01ff4000513e0136aa2bc305228e561 (diff) | |
download | samba-918d864a67fc4b94abe2d36dec32160a17eaa259.tar.gz samba-918d864a67fc4b94abe2d36dec32160a17eaa259.tar.bz2 samba-918d864a67fc4b94abe2d36dec32160a17eaa259.zip |
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
-rw-r--r-- | source4/utils/net/net.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 <command> [options]\n"); net_help(ctx, net_functable); - return 0; + return -1; } /**************************************************************************** |