summaryrefslogtreecommitdiff
path: root/source3/utils/testparm.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-01-13 13:03:25 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-01-13 13:03:25 +0000
commit5bd2d3f2ee18284b755b2690de06a03de9391b06 (patch)
tree8f410ec3c2211b34d2f863998de263f7fd3d7c31 /source3/utils/testparm.c
parent80120a79bc5381d86241b4173f085a00f5bb7e01 (diff)
downloadsamba-5bd2d3f2ee18284b755b2690de06a03de9391b06.tar.gz
samba-5bd2d3f2ee18284b755b2690de06a03de9391b06.tar.bz2
samba-5bd2d3f2ee18284b755b2690de06a03de9391b06.zip
Patch from metze to to make testparm show values for 'workgroup', 'netbios
name' and 'netbios scope'. Probably has a similar effect on SWAT. Also adds '-V' to testparm. Andrew Bartlett (This used to be commit 71f4d8efd36351ddb2180103c160a6d737da62b1)
Diffstat (limited to 'source3/utils/testparm.c')
-rw-r--r--source3/utils/testparm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/utils/testparm.c b/source3/utils/testparm.c
index 95c4b2b265..36b2bdfc6d 100644
--- a/source3/utils/testparm.c
+++ b/source3/utils/testparm.c
@@ -190,7 +190,7 @@ int main(int argc, const char *argv[])
int ret = 0;
int opt;
poptContext pc;
- static char *term_code = "";
+ static const char *term_code = "";
static char *new_local_machine = NULL;
const char *cname;
const char *caddr;
@@ -202,6 +202,7 @@ int main(int argc, const char *argv[])
{"verbose", 'v', POPT_ARG_NONE, &show_defaults, 1, "Show default options too"},
{"server", 'L',POPT_ARG_STRING, &new_local_machine, 0, "Set %%L macro to servername\n"},
{"encoding", 't', POPT_ARG_STRING, &term_code, 0, "Print parameters with encoding"},
+ {NULL, 0, POPT_ARG_INCLUDE_TABLE, popt_common_version},
{0,0,0,0}
};