[boinc] 08/10: New upstream version 7.8.1+dfsg

Gianfranco Costamagna locutusofborg at moszumanska.debian.org
Fri Aug 11 17:29:51 UTC 2017


This is an automated email from the git hooks/post-receive script.

locutusofborg pushed a commit to branch master
in repository boinc.

commit a9a55dcc42831eb2b8c49bdb750d7de664facb9c
Author: Gianfranco Costamagna <costamagnagianfranco at yahoo.it>
Date:   Fri Aug 11 18:44:06 2017 +0200

    New upstream version 7.8.1+dfsg
---
 clientgui/BOINCGUIApp.cpp  |  3 ++-
 clientgui/MainDocument.cpp |  3 ++-
 configure.ac               |  2 +-
 lib/gui_rpc_client.cpp     | 16 ++++++----------
 version.log                |  2 +-
 5 files changed, 12 insertions(+), 14 deletions(-)

diff --git a/clientgui/BOINCGUIApp.cpp b/clientgui/BOINCGUIApp.cpp
index 0717a20..900424a 100644
--- a/clientgui/BOINCGUIApp.cpp
+++ b/clientgui/BOINCGUIApp.cpp
@@ -308,7 +308,8 @@ bool CBOINCGUIApp::OnInit() {
             );
 #else   // ! (defined(__WXMAC__) && defined (_DEBUG))
             strDialogMessage.Printf(
-                _("You currently are not authorized to manage the client.\n\nTo run %s as this user, please:\n  - reinstall %s answering \"Yes\" to the question about\n     non-administrative users\n or\n  - contact your administrator to add you to the 'boinc_master'\n     user group."),
+                _("You currently are not authorized to manage %s.\n\nTo run %s as this user, please:\n- reinstall %s answering \"Yes\" to the question about non-administrative users\n or\n- contact your administrator to add you to the 'boinc_master' user group."),
+                m_pSkinManager->GetAdvanced()->GetApplicationShortName().c_str(),
                 m_pSkinManager->GetAdvanced()->GetApplicationShortName().c_str(),
                 m_pSkinManager->GetAdvanced()->GetApplicationShortName().c_str()
             );
diff --git a/clientgui/MainDocument.cpp b/clientgui/MainDocument.cpp
index 53c0fb2..e22b025 100644
--- a/clientgui/MainDocument.cpp
+++ b/clientgui/MainDocument.cpp
@@ -169,7 +169,6 @@ void CNetworkConnection::Poll() {
             if (!retval) {
                 wxLogTrace(wxT("Function Status"), wxT("CNetworkConnection::Poll - Connection Success"));
                 SetStateSuccess(m_strNewComputerName, m_strNewComputerPassword);
-                m_pDocument->CheckForVersionUpdate();
             } else if (ERR_AUTHENTICATOR == retval) {
                 wxLogTrace(wxT("Function Status"), wxT("CNetworkConnection::Poll - RPC Authorization - ERR_AUTHENTICATOR"));
                 SetStateErrorAuthentication();
@@ -1235,6 +1234,7 @@ int CMainDocument::CoreClientQuit() {
 bool CMainDocument::IsUserAuthorized() {
 #ifndef _WIN32
 #ifdef SANDBOX
+#ifndef __WXMAC__   // Currently unauthorized users can't run Manager, so this would be redundant
     static bool         sIsAuthorized = false;
     group               *grp;
     gid_t               rgid, boinc_master_gid;
@@ -1281,6 +1281,7 @@ bool CMainDocument::IsUserAuthorized() {
     }       // if (g_use_sandbox)
 #endif      // SANDBOX
 #endif      // #ifndef _WIN32
+#endif      // #ifndef __WXMAC__
 
     return true;
 }
diff --git a/configure.ac b/configure.ac
index 16b702d..1136f65 100644
--- a/configure.ac
+++ b/configure.ac
@@ -6,7 +6,7 @@ dnl not sure exactly what the minimum version is (but 2.13 wont work)
 AC_PREREQ(2.58)
 
 dnl Set the BOINC version here.  You can also use the set-version script.
-AC_INIT(BOINC, 7.8.0)
+AC_INIT(BOINC, 7.8.1)
 AC_CONFIG_MACRO_DIR([m4])
 LIBBOINC_VERSION=`echo ${PACKAGE_VERSION} | sed 's/\./:/g'`
 AC_SUBST([LIBBOINC_VERSION])
diff --git a/lib/gui_rpc_client.cpp b/lib/gui_rpc_client.cpp
index f470db6..bdf4015 100644
--- a/lib/gui_rpc_client.cpp
+++ b/lib/gui_rpc_client.cpp
@@ -308,16 +308,11 @@ int RPC_CLIENT::authorize(const char* passwd) {
 }
 
 int RPC_CLIENT::send_request(const char* p) {
-    char buf[100000];
-    snprintf(
-        buf,
-        sizeof(buf),
-        "<boinc_gui_rpc_request>\n"
-        "%s"
-        "</boinc_gui_rpc_request>\n\003",
-        p
-    );
-    int n = send(sock, buf, (int)strlen(buf), 0);
+    string buf;
+    buf = "<boinc_gui_rpc_request>\n";
+    buf += p;
+    buf += "</boinc_gui_rpc_request>\n\003";
+    int n = send(sock, buf.c_str(), buf.size(), 0);
     if (n < 0) {
         //printf("send: %d\n", n);
         //perror("send");
@@ -333,6 +328,7 @@ int RPC_CLIENT::get_reply(char*& mbuf) {
     MFILE mf;
     int n;
 
+    mf.puts("");    // make sure buffer is non-NULL
     while (1) {
         n = recv(sock, buf, 8192, 0);
         if (n <= 0) return ERR_READ;
diff --git a/version.log b/version.log
index 09a6d30..a8d1f4f 100644
--- a/version.log
+++ b/version.log
@@ -1 +1 @@
-7.8.0
+7.8.1

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-boinc/boinc.git



More information about the pkg-boinc-commits mailing list