Commit 45d0d731 authored by Kazuho Oku's avatar Kazuho Oku

fill-in `data_stat` after copying the request entity into the temporary file

parent 125f62b7
......@@ -2120,6 +2120,11 @@ int run(char **uris, int n) {
return 1;
}
}
if (fstat(data_fd, &data_stat) == -1) {
close(data_fd);
std::cerr << "[ERROR] Could not stat temporary file" << std::endl;
return 1;
}
}
} else {
data_fd = open(config.datafile.c_str(), O_RDONLY | O_BINARY);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment