git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d0cd3e
)
Fix unqualified "net join"
author
Volker Lendecke
<vl@samba.org>
Wed, 29 Jul 2009 08:30:52 +0000
(
04:30
-0400)
committer
Volker Lendecke
<vl@samba.org>
Wed, 29 Jul 2009 08:32:21 +0000
(
04:32
-0400)
Kai, please check!
Thanks,
Volker
source3/utils/net_join.c
patch
|
blob
|
history
diff --git
a/source3/utils/net_join.c
b/source3/utils/net_join.c
index 98188aae5fdb91a7548ae68ef9ce5470e4b3d221..8d4d8c3e520dd0af9a19fa4895ed98c637d3dfe2 100644
(file)
--- a/
source3/utils/net_join.c
+++ b/
source3/utils/net_join.c
@@
-34,10
+34,7
@@
int net_join_usage(struct net_context *c, int argc, const char **argv)
int net_join(struct net_context *c, int argc, const char **argv)
{
- if (argc < 1)
- return net_join_usage(c, argc, argv);
-
- if (StrCaseCmp(argv[0], "HELP") == 0) {
+ if ((argc > 0) && (StrCaseCmp(argv[0], "HELP") == 0)) {
net_join_usage(c, argc, argv);
return 0;
}