Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Jan 2018 22:50:56 +0000 (UTC)
From:      Larry Rosenman <ler@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r459631 - in head/net/boinc-client: . files
Message-ID:  <201801212250.w0LMouaN082621@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ler
Date: Sun Jan 21 22:50:56 2018
New Revision: 459631
URL: https://svnweb.freebsd.org/changeset/ports/459631

Log:
  net/boinc-client: don't crash getting MAC address.
  
  Reported by:	thurners@nicsys.de

Added:
  head/net/boinc-client/files/patch-client_mac__address.cpp   (contents, props changed)
Modified:
  head/net/boinc-client/Makefile
  head/net/boinc-client/files/patch-client_hostinfo__unix.cpp

Modified: head/net/boinc-client/Makefile
==============================================================================
--- head/net/boinc-client/Makefile	Sun Jan 21 22:14:47 2018	(r459630)
+++ head/net/boinc-client/Makefile	Sun Jan 21 22:50:56 2018	(r459631)
@@ -4,7 +4,7 @@
 PORTNAME=	boinc-client
 PORTVERSION=	7.8.6
 DISTVERSIONPREFIX=	client_release/7.8/
-PORTREVISION=	5
+PORTREVISION=	6
 CATEGORIES=	net
 
 MAINTAINER=	ler@FreeBSD.org

Modified: head/net/boinc-client/files/patch-client_hostinfo__unix.cpp
==============================================================================
--- head/net/boinc-client/files/patch-client_hostinfo__unix.cpp	Sun Jan 21 22:14:47 2018	(r459630)
+++ head/net/boinc-client/files/patch-client_hostinfo__unix.cpp	Sun Jan 21 22:50:56 2018	(r459631)
@@ -1,4 +1,4 @@
---- client/hostinfo_unix.cpp.orig	2018-01-14 16:39:30 UTC
+--- client/hostinfo_unix.cpp.orig	2018-01-14 10:07:52 UTC
 +++ client/hostinfo_unix.cpp
 @@ -164,7 +164,9 @@ extern "C" {
  // The following is intended to be true both on Linux

Added: head/net/boinc-client/files/patch-client_mac__address.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/boinc-client/files/patch-client_mac__address.cpp	Sun Jan 21 22:50:56 2018	(r459631)
@@ -0,0 +1,12 @@
+--- client/mac_address.cpp.orig	2018-01-21 22:41:16 UTC
++++ client/mac_address.cpp
+@@ -262,6 +262,9 @@ int get_mac_address(char* address) {
+             return -1;
+         }
+         hw_addr = (struct ether_addr *)&(item->lifr_lifru.lifru_enaddr);  
++#else
++	/* Need to teach this how on FreeBSD, but for now don't crash */
++	return -1;
+ #endif
+         strcpy(address, ether_ntoa(hw_addr));
+ #ifdef HAVE_STRUCT_LIFCONF



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801212250.w0LMouaN082621>