aboutsummaryrefslogtreecommitdiffstats
path: root/www/fnord/files/patch-httpd.c
blob: b933587a2a18d47b42b5458e9202a38fdf8c8465 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- httpd.orig  Fri Oct 14 14:44:45 2005
+++ httpd.c Fri Oct 14 14:47:03 2005
@@ -963,13 +963,12 @@
 }
 static void handledirlist(const char*origurl) {
   DIR*dir;
-  unsigned int nl=str_len(origurl);
+  unsigned int nl;
   const char*nurl=origurl;
   url=(char*)origurl;
   while (nurl[0]=='/') ++nurl;
-  if (nurl<=origurl) return;
+  if (nurl==origurl) return;
   nl=str_len(nurl);
-  if (nurl[nl-1]!='/') return;
   if (!stat(nl?nurl:".",&st) && (S_ISDIR(st.st_mode)) && ((st.st_mode&S_IRWXO)==5)) {
     if (nl) chdir(nurl);
     if (dir=opendir(".")) {
it.cgi/freebsd-ports-gnome/commit/java/jakarta-bcel?id=9ddd3b82d6dc17d4f1d24406279c66dc9f23b128'>Clear moonlight beckons.ade2003-03-072-1/+1