From: Andreas Schneider Date: Mon, 27 Apr 2015 14:18:38 +0000 (+0200) Subject: testparm: Add warning if the netbios name is too long X-Git-Tag: tevent-0.9.25~432 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f56dfb0722ff432edb0a228766b1f53ccefcfd23;p=thirdparty%2Fsamba.git testparm: Add warning if the netbios name is too long Signed-off-by: Andreas Schneider Reviewed-by: Guenther Deschner --- 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());