summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-10-11 05:53:15 +0000
committerJeremy Allison <jra@samba.org>2001-10-11 05:53:15 +0000
commit76745313b16c07092b0198da4d4fc05b38e600f7 (patch)
tree3fb231a7ba58685c61d5abe2b2d227d8376b88f8 /source3/utils
parentb51d52ed307e91ab93867d2316d4ab889d2fb344 (diff)
downloadsamba-76745313b16c07092b0198da4d4fc05b38e600f7.tar.gz
samba-76745313b16c07092b0198da4d4fc05b38e600f7.tar.bz2
samba-76745313b16c07092b0198da4d4fc05b38e600f7.zip
Fixed bug when status=no and max smbd processes > 0.
Jeremy. (This used to be commit d1adaee373f08020d350af2aa65b7651da94bdae)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/testparm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/utils/testparm.c b/source3/utils/testparm.c
index 09948b8635..9397ea2520 100644
--- a/source3/utils/testparm.c
+++ b/source3/utils/testparm.c
@@ -157,6 +157,11 @@ via the %%o substitution. With encrypted passwords this is not possible.\n", lp_
}
}
+ if (lp_status(-1) && lp_max_smbd_processes()) {
+ printf("ERROR: the 'max smbd processes' parameter is set and the 'status' parameter is set to 'no'.\n");
+ ret = 1;
+ }
+
return ret;
}