summaryrefslogtreecommitdiff
path: root/source4/scripting/bin
diff options
context:
space:
mode:
Diffstat (limited to 'source4/scripting/bin')
-rwxr-xr-xsource4/scripting/bin/testparm4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/scripting/bin/testparm b/source4/scripting/bin/testparm
index 95adcf3f16..c2f8bc853f 100755
--- a/source4/scripting/bin/testparm
+++ b/source4/scripting/bin/testparm
@@ -57,7 +57,7 @@ def do_global_checks(lp, logger):
piddir = lp.get("pid directory")
- if os.path.isdir(piddir):
+ if not os.path.isdir(piddir):
logger.error("pid directory %s does not exist", piddir)
valid = False
@@ -125,7 +125,7 @@ if __name__ == '__main__':
help="Client IP address for 'hosts allow' checking")
parser.add_option("--suppress-prompt", action="store_true", default=False,
help="Suppress prompt for enter")
- parser.add_option("--verbose", action="store_true",
+ parser.add_option("-v", "--verbose", action="store_true",
default=False, help="Show default options too")
parser.add_option_group(options.VersionOptions(parser))
# We need support for smb.conf macros before this will work again