Remove redundant permission set.

The temp socket is in a safe place. There is no need to set any
permissions at this point.

Change-Id: I18ea4b71b7c20db65dc46c57ddc5d34d8b93f577
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
This commit is contained in:
BogDan Vatra 2014-10-28 15:23:37 +02:00
parent 4b8d4034d7
commit aa4d76e468

View File

@ -124,13 +124,6 @@ bool QLocalServerPrivate::listen(const QString &requestedServerName)
}
::memcpy(addr.sun_path, tempPath.toLatin1().data(),
tempPath.toLatin1().size() + 1);
if (-1 == ::fchmod(listenSocket, 0)) {
setError(QLatin1String("QLocalServer::listen"));
closeServer();
return false;
}
} else {
::memcpy(addr.sun_path, fullServerName.toLatin1().data(),
fullServerName.toLatin1().size() + 1);