summaryrefslogtreecommitdiff
path: root/source3/utils/testparm.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2002-11-05 18:30:47 +0000
committerJelmer Vernooij <jelmer@samba.org>2002-11-05 18:30:47 +0000
commitb7b27a9f173d0e4a642ac282c0d840b42436b1b5 (patch)
tree39ce39ce092f67cb671683532a25a4c36af80b59 /source3/utils/testparm.c
parent7dc065f8e1858e446209b86c8efea68b11912260 (diff)
downloadsamba-b7b27a9f173d0e4a642ac282c0d840b42436b1b5.tar.gz
samba-b7b27a9f173d0e4a642ac282c0d840b42436b1b5.tar.bz2
samba-b7b27a9f173d0e4a642ac282c0d840b42436b1b5.zip
Tell popt this command requires 1 'normal' argument and has two optional 'normal' parameters
(This used to be commit b4f00ceaadc77158870ea2bd9d8a0e0845c89b7a)
Diffstat (limited to 'source3/utils/testparm.c')
-rw-r--r--source3/utils/testparm.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/utils/testparm.c b/source3/utils/testparm.c
index c92692fda2..451a15992b 100644
--- a/source3/utils/testparm.c
+++ b/source3/utils/testparm.c
@@ -168,6 +168,12 @@ via the %%o substitution. With encrypted passwords this is not possible.\n", lp_
printf("'winbind separator = +' might cause problems with group membership.\n");
}
+#ifndef HAVE_DLOPEN
+ if (lp_modules() != NULL) {
+ printf("'modules = ' specified in configuration file, but this samba build does not support plugins!\n");
+ }
+#endif
+
if (lp_algorithmic_rid_base() < BASE_RID) {
/* Try to prevent admin foot-shooting, we can't put algorithmic
rids below 1000, that's the 'well known RIDs' on NT */
@@ -208,6 +214,7 @@ int main(int argc, const char *argv[])
pc = poptGetContext(NULL, argc, argv, long_options,
POPT_CONTEXT_KEEP_FIRST);
+ poptSetOtherOptionHelp(pc, "[OPTION...] <config-file> [host-name] [host-ip]");
while((opt = poptGetNextOpt(pc)) != -1);