added read mode to logFile creation

This commit is contained in:
Václav Šmejkal 2023-01-21 21:09:48 +01:00
parent b71bab6749
commit 914e7a2020
Signed by: ENGO150
GPG Key ID: F6D6DF86242C5A59

View File

@ -74,7 +74,7 @@ logFile initLogger(char *directoryPath)
sprintf(filePath, LOG_FORMATTING, directoryPath, dateBuffer, buffer); //GENERATE LOG-NAME sprintf(filePath, LOG_FORMATTING, directoryPath, dateBuffer, buffer); //GENERATE LOG-NAME
file = open(filePath, O_WRONLY | O_APPEND | O_CREAT, 0644); //CREATE LOG FILE file = open(filePath, O_RDWR | O_APPEND | O_CREAT, 0644); //CREATE LOG FILE
//CREATE SYMLINK //CREATE SYMLINK
sprintf(latestBuffer, LOG_LATEST_FORMATTING, WRITE_DIR, LOG_LATEST); //GENERATE LATEST.log PATH sprintf(latestBuffer, LOG_LATEST_FORMATTING, WRITE_DIR, LOG_LATEST); //GENERATE LATEST.log PATH