mirror of
https://github.com/jorisvink/kore
synced 2025-03-09 20:49:01 -04:00
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…
x
Reference in New Issue
Block a user