summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2015-04-27 16:18:38 +0200
committerAndreas Schneider <asn@cryptomilk.org>2015-05-21 20:07:28 +0200
commitf56dfb0722ff432edb0a228766b1f53ccefcfd23 (patch)
tree57125a2e5246035e77ad87531ddc99341d03b0cd
parente9f08528af0a5420d6a5fa3799b75c6058b6775f (diff)
downloadsamba-f56dfb0722ff432edb0a228766b1f53ccefcfd23.tar.gz
testparm: Add warning if the netbios name is too long
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
-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 7850b4386ed..5912d18e085 100644
--- a/source3/utils/testparm.c
+++ b/source3/utils/testparm.c
@@ -88,6 +88,11 @@ static int do_global_checks(void)
"must differ.\n\n");
}
+ if (strlen(lp_netbios_name()) > 15) {
+ fprintf(stderr, "WARNING: The 'netbios name' is too long "
+ "(max. 15 chars).\n\n");
+ }
+
if (!directory_exist_stat(lp_lock_directory(), &st)) {
fprintf(stderr, "ERROR: lock directory %s does not exist\n\n",
lp_lock_directory());