ben 96/03/18 11:44:34
Modified: src mod_userdir.c Log: Fix NULL filename problem with username mapping, and document side-effect on last UserDir alias. Revision Changes Path 1.6 +6 -2 apache/src/mod_userdir.c Index: mod_userdir.c =================================================================== RCS file: /export/home/cvs/apache/src/mod_userdir.c,v retrieving revision 1.5 retrieving revision 1.6 diff -C3 -r1.5 -r1.6 *** mod_userdir.c 1996/03/18 07:47:26 1.5 --- mod_userdir.c 1996/03/18 19:44:32 1.6 *************** *** 173,180 **** } ! /* Now see if it exists, or we're at the last entry */ ! if (!*userdirs || stat(filename, &r->finfo) != -1) { r->filename = pstrcat(r->pool, filename, dname, NULL); return OK; } --- 173,184 ---- } ! /* Now see if it exists, or we're at the last entry. If we are at the ! last entry, then use the filename generated (if there is one) anyway, ! in the hope that some handler might handle it. This can be used, for ! example, to run a CGI script for the user. ! */ ! if (filename && (!*userdirs || stat(filename, &r->finfo) != -1)) { r->filename = pstrcat(r->pool, filename, dname, NULL); return OK; }