[Pkg-owncloud-commits] [owncloud-client] 177/219: SocketAPI: Set permission of the socket Directory.
Sandro Knauß
hefee-guest at moszumanska.debian.org
Sat Oct 11 14:43:24 UTC 2014
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit 0ee81a2865d44b12f5153007ada93237cf185d8f
Author: Klaas Freitag <freitag at owncloud.com>
Date: Tue Sep 30 11:16:49 2014 +0200
SocketAPI: Set permission of the socket Directory.
Set that to be accessible by the owner only.
---
src/mirall/socketapi.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/mirall/socketapi.cpp b/src/mirall/socketapi.cpp
index fd16afa..e564081 100644
--- a/src/mirall/socketapi.cpp
+++ b/src/mirall/socketapi.cpp
@@ -266,6 +266,10 @@ SocketApi::SocketApi(QObject* parent)
if (!info.dir().exists()) {
bool result = info.dir().mkpath(".");
DEBUG << "creating" << info.dir().path() << result;
+ if( result ) {
+ QFile::setPermissions(socketPath,
+ QFile::Permissions(QFile::ReadOwner+QFile::WriteOwner+QFile::ExeOwner));
+ }
}
if(!_localServer.listen(socketPath)) {
DEBUG << "can't start server" << socketPath;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list