svn commit: r459631 - in head/net/boinc-client: . files
Larry Rosenman
ler at FreeBSD.org
Sun Jan 21 22:50:57 UTC 2018
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 at 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 at 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
More information about the svn-ports-all
mailing list