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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user