parent
1ce53a3bbb
commit
53abed4574
@ -0,0 +1,25 @@
|
||||
From dece8fd89979cd1a86c03bcaceef6e9221e8d8cd Mon Sep 17 00:00:00 2001
|
||||
From: taro yamada <archer_ame@yahoo.co.jp>
|
||||
Date: Wed, 18 May 2016 00:08:09 +0200
|
||||
Subject: [PATCH] Fix permissions of /tmp/xauth-xxx-_y
|
||||
|
||||
BUGS: 358593
|
||||
---
|
||||
src/kdeinit/kinit.cpp | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/src/kdeinit/kinit.cpp b/src/kdeinit/kinit.cpp
|
||||
index ca18603..19e38b8 100644
|
||||
--- a/src/kdeinit/kinit.cpp
|
||||
+++ b/src/kdeinit/kinit.cpp
|
||||
@@ -1531,6 +1531,7 @@ static void setupX()
|
||||
QSaveFile xauthfile(xauth);
|
||||
QFile xauthfrom(QFile::decodeName(qgetenv("XAUTHORITY")));
|
||||
if (!xauthfrom.open(QFile::ReadOnly) || !xauthfile.open(QFile::WriteOnly)
|
||||
+ || !xauthfile.setPermissions(QFile::ReadOwner | QFile::WriteOwner)
|
||||
|| xauthfile.write(xauthfrom.readAll()) != xauthfrom.size() || !xauthfile.commit()) {
|
||||
// error
|
||||
} else {
|
||||
--
|
||||
2.7.4
|
||||
|
Loading…
Reference in new issue