char *newpath;
int rv;
- if(!el == '.') {
+ if(*el == '.') {
simpleerror(fd, 404, "Not Found", "The requested URL has no corresponding resource.");
return(1);
}
if(!*el) {
replrest(req, rest);
handledir(req, fd, path);
- return(1);
+ rv = 1;
+ goto out;
}
rv = checkentry(req, fd, path, rest, el);