git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1401f2
)
s3:testparm: add "--option" to testparm
author
Michael Adam
<obnox@samba.org>
Wed, 9 Feb 2011 12:45:22 +0000
(13:45 +0100)
committer
Michael Adam
<obnox@samba.org>
Wed, 9 Feb 2011 14:23:51 +0000
(15:23 +0100)
This way one can test the --option feature with testparm.
E.g.:
testparm -s -v --option="parameter=value" | grep parameter
should print "parameter = value"
source3/utils/testparm.c
patch
|
blob
|
history
diff --git
a/source3/utils/testparm.c
b/source3/utils/testparm.c
index b17d61b91458660ebd1857a75e420ddae18b3487..1a011a5a37da710f445265ba68a30aca2db33d55 100644
(file)
--- a/
source3/utils/testparm.c
+++ b/
source3/utils/testparm.c
@@
-339,6
+339,7
@@
rameter is ignored when using CUPS libraries.\n",
{"section-name", '\0', POPT_ARG_STRING, §ion_name, 0, "Limit testparm to a named section" },
POPT_COMMON_VERSION
POPT_COMMON_DEBUGLEVEL
+ POPT_COMMON_OPTION
POPT_TABLEEND
};