ben 96/10/19 07:20:22
Modified: src http_request.c
Log:
Correct miscounting of directories.
Submitted by: Paul Sutton
Revision Changes Path
1.20 +5 -1 apache/src/http_request.c
Index: http_request.c
===================================================================
RCS file: /export/home/cvs/apache/src/http_request.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -C3 -r1.19 -r1.20
*** http_request.c 1996/10/19 10:07:43 1.19
--- http_request.c 1996/10/19 14:20:20 1.20
***************
*** 50,56 ****
*
*/
! /* $Id: http_request.c,v 1.19 1996/10/19 10:07:43 ben Exp $ */
/*
* http_request.c: functions to get and process requests
--- 50,56 ----
*
*/
! /* $Id: http_request.c,v 1.20 1996/10/19 14:20:20 ben Exp $ */
/*
* http_request.c: functions to get and process requests
***************
*** 270,277 ****
--- 270,281 ----
no2slash (test_filename);
num_dirs = count_dirs(test_filename);
+
get_path_info (r);
+ if (test_filename[strlen(test_filename)-1] == '/')
+ --num_dirs;
+
if (S_ISDIR (r->finfo.st_mode)) ++num_dirs;
for (i = 1; i <= num_dirs; ++i) {