From 055af776668c0878dd830f82d4bc6ca6aaca8e7a Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 19 Nov 1998 06:45:21 +0000 Subject: [PATCH] improved the "refuse options" code a bit --- options.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/options.c b/options.c index 6fa59636..482f85e6 100644 --- a/options.c +++ b/options.c @@ -236,7 +236,8 @@ static int check_refuse_options(char *ref, int opt) len = strlen(name); while ((p = strstr(ref,name))) { - if (p[len] == ' ' || p[len] == 0) { + if ((p==ref || p[-1]==' ') && + (p[len] == ' ' || p[len] == 0)) { slprintf(err_buf,sizeof(err_buf), "The '%s' option is not supported by this server\n", name); return 1; -- 2.34.1