forked from mirrors/kore
close fd if we're a directory in filemap.
This commit is contained in:
parent
61b385ae11
commit
0d6a188b01
|
@ -280,6 +280,7 @@ lookup:
|
|||
fd = -1;
|
||||
}
|
||||
} else if (S_ISDIR(st.st_mode) && index == 0) {
|
||||
close(fd);
|
||||
if (req->path[strlen(req->path) - 1] != '/') {
|
||||
(void)snprintf(fpath,
|
||||
sizeof(fpath), "%s/", req->path);
|
||||
|
|
Loading…
Reference in New Issue