1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-02-13 03:41:55 +00:00

Cover kernel file writer.

This commit is contained in:
winlin 2019-05-13 08:49:38 +08:00
parent a7e0d672a7
commit d5661dcc4e

View file

@ -82,7 +82,7 @@ srs_error_t SrsFileWriter::open_append(string p)
int flags = O_APPEND|O_WRONLY;
mode_t mode = S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH;
if ((fd = ::open(p.c_str(), flags, mode)) < 0) {
if ((fd = _srs_open_fn(p.c_str(), flags, mode)) < 0) {
return srs_error_new(ERROR_SYSTEM_FILE_OPENE, "open file %s failed", p.c_str());
}