Don't use O_CLOEXEC (use tvheadends own wrapper instead)
This commit is contained in:
parent
dc722ac0b5
commit
4cd020e509
1 changed files with 2 additions and 2 deletions
|
@ -102,7 +102,7 @@ page_static_file(http_connection_t *hc, const char *remain, void *opaque)
|
|||
|
||||
snprintf(path, sizeof(path), "%s/%s", base, remain);
|
||||
|
||||
if((fd = open(path, O_RDONLY | O_CLOEXEC)) < 0) {
|
||||
if((fd = tvh_open(path, O_RDONLY, 0)) < 0) {
|
||||
tvhlog(LOG_ERR, "webui",
|
||||
"Unable to open file %s -- %s", path, strerror(errno));
|
||||
return 404;
|
||||
|
@ -222,7 +222,7 @@ page_dvrfile(http_connection_t *hc, const char *remain, void *opaque)
|
|||
content = "video/x-matroska";
|
||||
}
|
||||
|
||||
fd = open(fname, O_RDONLY | O_CLOEXEC);
|
||||
fd = tvh_open(fname, O_RDONLY, 0);
|
||||
free(fname);
|
||||
if(fd < 0)
|
||||
return 404;
|
||||
|
|
Loading…
Add table
Reference in a new issue