Documentation Source Text

Check-in [67fc7ffb67]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix a bug in checking for the existance of the "default.website" folder.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 67fc7ffb6743f1a6347fcdaba3b12646feaad3f0
User & Date: drh 2012-07-06 05:22:54
Context
2012-07-07
05:47
In althttpd.c add process tracing, commented out. check-in: 2a6b5e40c5 user: drh tags: trunk
2012-07-06
05:22
Fix a bug in checking for the existance of the "default.website" folder. check-in: 67fc7ffb67 user: drh tags: trunk
2012-07-05
20:01
Add support for IPv6 to the CGI handler. check-in: 46c838972f user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to misc/althttpd.c.

1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
        zLine[i] = tolower(c);
      }
    }
    strcpy(&zLine[i], ".website");
  }
  if( stat(zLine,&statbuf) || !S_ISDIR(statbuf.st_mode) ){
    sprintf(zLine, "%s/default.website", zRoot);
    if( stat(zLine,&statbuf) && !S_ISDIR(statbuf.st_mode) ){
      NotFound(__LINE__);
    }
  }
  
  zHome = StrDup(zLine);

  /* Change directories to the root of the HTTP filesystem







|







1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
        zLine[i] = tolower(c);
      }
    }
    strcpy(&zLine[i], ".website");
  }
  if( stat(zLine,&statbuf) || !S_ISDIR(statbuf.st_mode) ){
    sprintf(zLine, "%s/default.website", zRoot);
    if( stat(zLine,&statbuf) || !S_ISDIR(statbuf.st_mode) ){
      NotFound(__LINE__);
    }
  }
  
  zHome = StrDup(zLine);

  /* Change directories to the root of the HTTP filesystem