Commit 055af776 authored by Andrew Tridgell's avatar Andrew Tridgell

improved the "refuse options" code a bit

parent cd8185f2
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment