git.samba.org
/
bbaumbach
/
samba-autobuild
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
s4-net: exit with a failure when a command is unknown
[bbaumbach/samba-autobuild/.git]
/
source4
/
utils
/
net
/
net.c
diff --git
a/source4/utils/net/net.c
b/source4/utils/net/net.c
index 46cc07d7024290336cf0b2f5082f01916941dc60..95b70ef01d2013b73a9321fda3c93302bbb47ea1 100644
(file)
--- 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
;
}
/****************************************************************************