Back out change that treated "refuse options = compress" the same as

"dont compress = *", by request of Tridge.  Instead, mention the difference
in the man page.  Also, put in a shortcut in set_compression() to recognize
"*" earlier instead of going through malloc/strtok/fnmatch/free cycle.
This commit is contained in:
David Dykstra
1998-11-25 15:37:50 +00:00
parent d47741cac6
commit 63f0774f75
3 changed files with 14 additions and 16 deletions

View File

@@ -238,13 +238,6 @@ static int check_refuse_options(char *ref, int opt)
while ((p = strstr(ref,name))) {
if ((p==ref || p[-1]==' ') &&
(p[len] == ' ' || p[len] == 0)) {
if (opt == 'z') {
/* don't actually refuse this one, just */
/* minimize the compression level for now */
extern int default_compression_level;
default_compression_level = 0;
return 0;
}
slprintf(err_buf,sizeof(err_buf),
"The '%s' option is not supported by this server\n", name);
return 1;