Bug: https://bugs.gentoo.org/695702
Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
--- /dev/null
+https://github.com/rime/librime/issues/316
+https://github.com/rime/librime/commit/90839b0b3d47cbfef715ea5f061c7505666ff75d
+
+--- /src/rime/setup.cc
++++ /src/rime/setup.cc
+@@ -35,6 +35,8 @@
+
+ RIME_API void SetupLogging(const char* app_name) {
+ #ifdef RIME_ENABLE_LOGGING
++ // Do not allow other users to read/write log files created by current process.
++ FLAGS_logfile_mode = 0600;
+ google::InitGoogleLogging(app_name);
+ #endif // RIME_ENABLE_LOGGING
+ }
BDEPEND=""
RDEPEND="app-i18n/opencc:0=
- dev-cpp/glog:0=
+ >=dev-cpp/glog-0.3.5:0=
dev-cpp/yaml-cpp:0=
dev-libs/boost:0=[nls,threads]
dev-libs/leveldb:0=
x11-base/xorg-proto
test? ( dev-cpp/gtest )"
+PATCHES=(
+ "${FILESDIR}/${P}-log_files_mode.patch"
+)
+
DOCS=(CHANGELOG.md README.md)
src_prepare() {