mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 21:03:30 -07:00
Change default permissions on log to 640
This will allow other users in the same group as the user running qBittorrent to read the log file. Useful if running a setup with a systemd service and an unprivileged qbt user for example.
This commit is contained in:
parent
da87be2b12
commit
4ef2072bf5
1 changed files with 1 additions and 1 deletions
|
@ -176,7 +176,7 @@ void FileLogger::flushLog()
|
|||
void FileLogger::openLogFile()
|
||||
{
|
||||
if (!m_logFile.open(QIODevice::WriteOnly | QIODevice::Append | QIODevice::Text)
|
||||
|| !m_logFile.setPermissions(QFile::ReadOwner | QFile::WriteOwner))
|
||||
|| !m_logFile.setPermissions(QFile::ReadOwner | QFile::WriteOwner | QFile::ReadGroup))
|
||||
{
|
||||
m_logFile.close();
|
||||
LogMsg(tr("An error occurred while trying to open the log file. Logging to file is disabled."), Log::CRITICAL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue