diff --git a/services/hilogd/log_persister_rotator.cpp b/services/hilogd/log_persister_rotator.cpp index 67e098206d701ae134c8f1fb2738bd7cd8d6b790..37d37aa94a98c5e2aeb9fc4ea0046316a49a7c31 100644 --- a/services/hilogd/log_persister_rotator.cpp +++ b/services/hilogd/log_persister_rotator.cpp @@ -41,7 +41,7 @@ void LogPersisterRotator::Init() mkdir(fileName.substr(0, nPos).c_str(), S_IRUSR | S_IWUSR | S_IXUSR | S_IRWXG | S_IRWXO); } } - fdinfo = fopen((mmapPath + ".info").c_str(), "w+"); + fdinfo = fopen((mmapPath + ".info").c_str(), "r+"); } int LogPersisterRotator::Input(const char *buf, uint32_t length)