From: Chris S. <cb...@ct...> - 2004-05-27 08:01:42
|
On Wed, 26 May 2004, Chris Stromsoe wrote: > core_mkd() doesn't look like it has any hooks that I can use to force a > failure for over quota situations. Being able to change the return code > would be very useful in that situation (where "very useful" means "less > confusing to the user whose GUI said the directory was created, but who > can't find it"). Other than that it's an ugly hack, what about adding a function to response.c that changes one return code to another, to allow POST handlers to alter specific responses when they "know better" on a case-by-case about what should be returned. Something like: void pr_response_change_resp_list_code(char *old, char *new) { pr_response_t *h = resp_list; while(h) { if (h->num && ! strcmp(h->num, old)) h->num = pstrdup(resp_pool, new); h = h->next; } return; } -Chris |