mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 12:59:56 -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
8aa1a96d71
commit
2199d8b737
1 changed files with 1 additions and 1 deletions
|
@ -183,7 +183,7 @@ void FileLogger::openLogFile()
|
||||||
}
|
}
|
||||||
|
|
||||||
// best effort, don't report error
|
// best effort, don't report error
|
||||||
m_logFile.setPermissions(QFile::ReadOwner | QFile::WriteOwner);
|
m_logFile.setPermissions(QFile::ReadOwner | QFile::WriteOwner | QFile::ReadGroup);
|
||||||
}
|
}
|
||||||
|
|
||||||
void FileLogger::closeLogFile()
|
void FileLogger::closeLogFile()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue