diff --git a/README.md b/README.md index 81957c549..5d23e8dcb 100755 --- a/README.md +++ b/README.md @@ -273,7 +273,7 @@ For previous versions, please read: ## V2 changes -* v2.0, 2020-01-08, Merge [#1554][bug #1554], support logrotate copytruncate. 2.0.271 +* v2.0, 2020-01-08, Merge [#1554][bug #1554], support logrotate copytruncate. 2.0.272 * v2.0, 2020-01-05, Merge [#1551][bug #1551], fix memory leak in RTSP stack. 2.0.270 * v2.0, 2019-12-26, For [#1488][bug #1488], pass client ip to http callback. 2.0.269 * v2.0, 2019-12-23, Fix [srs-librtmp #22](https://github.com/ossrs/srs-librtmp/issues/22), parse vhost splited by single seperator. 2.0.268 diff --git a/trunk/src/app/srs_app_log.cpp b/trunk/src/app/srs_app_log.cpp index d22ab38c1..4d73ebf8e 100644 --- a/trunk/src/app/srs_app_log.cpp +++ b/trunk/src/app/srs_app_log.cpp @@ -319,6 +319,9 @@ void SrsFastLog::open_log_file() return; } - fd = ::open(filename.c_str(), O_RDWR | O_CREAT | O_APPEND); + fd = ::open(filename.c_str(), + O_RDWR | O_CREAT | O_APPEND, + S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH + ); }