Greetings,
While providing support on IRC, I noticed that FallbackResource lacks a
'turn-off' switch.
Since it works in per dir config, it seems sane that it could be
valuable to turn it off in chosen subdirs.
This one liner patch adds support for the keyword 'disabled' (stolen
from userdir).
Of course, the pitfall is that you cannot fallbackresource to a resource
named "disabled".
This patch is against 2.4. I will commit the updated documentation and
suggest the same patch for 2.2 if this is accepted.
Regards,
Gryzor
--
"I never look behind me, my troubles will be few"
Supertramp
Index: mod_dir.c
===================================================================
--- mod_dir.c (révision 1397126)
+++ mod_dir.c (copie de travail)
@@ -162,7 +163,7 @@
int error_notfound = 0;
name_ptr = d->dflt;
- if (name_ptr == NULL) {
+ if ((name_ptr == NULL) || !(strcasecmp(name_ptr,"disabled"))){
return DECLINED;
}
/* XXX: if FallbackResource points to something that doesn't exist,