summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-09-04 13:21:24 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:30:29 -0500
commit6de1b0b65b9e6364914bac52219e155ae45bbfbf (patch)
treecd131ac28d3be83cd848da20e8f5a54333b55286 /source3/utils
parentff0947fbed841065fce85c64ff4b2a2e8f24f056 (diff)
downloadsamba-6de1b0b65b9e6364914bac52219e155ae45bbfbf.tar.gz
samba-6de1b0b65b9e6364914bac52219e155ae45bbfbf.tar.bz2
samba-6de1b0b65b9e6364914bac52219e155ae45bbfbf.zip
r24951: Warn if "os level" > 255
Thanks to Karolin Seeger <ks@sernet.de> (This used to be commit 3abf06efc1286090caf380eb685e90ba7f412748)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/testparm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/utils/testparm.c b/source3/utils/testparm.c
index 8c45f0837f..19c7ee1623 100644
--- a/source3/utils/testparm.c
+++ b/source3/utils/testparm.c
@@ -187,6 +187,10 @@ via the %%o substitution. With encrypted passwords this is not possible.\n", lp_
if (!lp_passdb_backend()) {
fprintf(stderr,"ERROR: passdb backend must have a value or be left out\n");
}
+
+ if (lp_os_level() > 255) {
+ fprintf(stderr,"WARNING: Maximum value for 'os level' is 255!\n");
+ }
return ret;
}