From owner-svn-ports-all@freebsd.org Mon Jun 12 20:27:44 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 06C80C77519; Mon, 12 Jun 2017 20:27:44 +0000 (UTC) (envelope-from ultima@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D580C7D84C; Mon, 12 Jun 2017 20:27:43 +0000 (UTC) (envelope-from ultima@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v5CKRgZd075539; Mon, 12 Jun 2017 20:27:42 GMT (envelope-from ultima@FreeBSD.org) Received: (from ultima@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v5CKRgTI075535; Mon, 12 Jun 2017 20:27:42 GMT (envelope-from ultima@FreeBSD.org) Message-Id: <201706122027.v5CKRgTI075535@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ultima set sender to ultima@FreeBSD.org using -f From: Richard Gallamore Date: Mon, 12 Jun 2017 20:27:42 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r443467 - in head/sysutils/mcelog: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jun 2017 20:27:44 -0000 Author: ultima Date: Mon Jun 12 20:27:42 2017 New Revision: 443467 URL: https://svnweb.freebsd.org/changeset/ports/443467 Log: * Updated to 153 - memutil.h: add missing include for va_list Submitted by: ultima (maintainer) Reviewed by: lifanov (mentor) Approved by: lifanov (mentor) Differential Revision: https://reviews.freebsd.org/D11161 Modified: head/sysutils/mcelog/Makefile head/sysutils/mcelog/distinfo head/sysutils/mcelog/files/patch-server.c Modified: head/sysutils/mcelog/Makefile ============================================================================== --- head/sysutils/mcelog/Makefile Mon Jun 12 20:27:31 2017 (r443466) +++ head/sysutils/mcelog/Makefile Mon Jun 12 20:27:42 2017 (r443467) @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= mcelog -PORTVERSION= 151 +PORTVERSION= 153 DISTVERSIONPREFIX= v CATEGORIES= sysutils Modified: head/sysutils/mcelog/distinfo ============================================================================== --- head/sysutils/mcelog/distinfo Mon Jun 12 20:27:31 2017 (r443466) +++ head/sysutils/mcelog/distinfo Mon Jun 12 20:27:42 2017 (r443467) @@ -1,3 +1,3 @@ -TIMESTAMP = 1495807224 -SHA256 (andikleen-mcelog-v151_GH0.tar.gz) = a98268d782c66bcb3c657b81038871a47d6c841f4a5322471c7def88e33eb9f8 -SIZE (andikleen-mcelog-v151_GH0.tar.gz) = 297043 +TIMESTAMP = 1497297738 +SHA256 (andikleen-mcelog-v153_GH0.tar.gz) = 9b827f708855804b6952de6f6cbf2f6523fa1203c621e6050064388f459646f1 +SIZE (andikleen-mcelog-v153_GH0.tar.gz) = 297099 Modified: head/sysutils/mcelog/files/patch-server.c ============================================================================== --- head/sysutils/mcelog/files/patch-server.c Mon Jun 12 20:27:31 2017 (r443466) +++ head/sysutils/mcelog/files/patch-server.c Mon Jun 12 20:27:42 2017 (r443467) @@ -1,6 +1,6 @@ ---- server.c.orig 2016-02-10 18:38:43 UTC +--- server.c.orig 2017-06-11 18:52:26 UTC +++ server.c -@@ -101,7 +101,9 @@ static void dispatch_dump(FILE *fh, char +@@ -101,7 +101,9 @@ static void dispatch_dump(FILE *fh, char *s) static void dispatch_pages(FILE *fh) { @@ -10,7 +10,7 @@ fprintf(fh, "done\n"); } -@@ -137,6 +139,7 @@ static void process_cmd(struct clientcon +@@ -137,6 +139,7 @@ static void process_cmd(struct clientcon *cc) Enomem(); } @@ -18,12 +18,12 @@ /* check if client is allowed to access */ static int access_check(int fd, struct msghdr *msg) { -@@ -162,11 +165,44 @@ static int access_check(int fd, struct m +@@ -162,11 +165,44 @@ static int access_check(int fd, struct msghdr *msg) sendstring(fd, "permission denied\n"); return -1; } +#endif -+ + +#ifdef __FreeBSD__ +/* check if client is allowed to access */ +static int access_check(int fd, struct msghdr *msg) @@ -51,7 +51,7 @@ + return -1; +} +#endif - ++ /* retrieve commands from client */ static int client_input(int fd, struct clientcon *cc) { @@ -63,7 +63,7 @@ struct iovec miov; struct msghdr msg = { .msg_iov = &miov, -@@ -242,18 +278,22 @@ static void client_accept(struct pollfd +@@ -242,18 +278,22 @@ static void client_accept(struct pollfd *pfd, void *da { struct clientcon *cc = NULL; int nfd = accept(pfd->fd, NULL, 0); @@ -86,7 +86,7 @@ cc = xalloc(sizeof(struct clientcon)); if (register_pollcb(nfd, POLLIN, client_event, cc) < 0) { -@@ -301,7 +341,12 @@ static int server_ping(struct sockaddr_u +@@ -301,7 +341,12 @@ static int server_ping(struct sockaddr_un *un) if (sigsetjmp(ping_timeout_ctx, 1) == 0) { ret = -1; alarm(initial_ping_timeout); @@ -99,3 +99,25 @@ goto cleanup; if (write(fd, PAIR("ping\n")) < 0) goto cleanup; +@@ -322,7 +367,9 @@ void server_setup(void) + { + int fd; + struct sockaddr_un adr; ++#ifdef __Linux__ + int on; ++#endif + + server_config(); + +@@ -363,9 +410,11 @@ void server_setup(void) + listen(fd, 10); + /* Set SO_PASSCRED to avoid race with client connecting too fast */ + /* Ignore error for old kernels */ ++#ifdef __Linux__ + on = 1; + setsockopt(fd, SOL_SOCKET, SO_PASSCRED, &on, sizeof(on)); + ++#endif + register_pollcb(fd, POLLIN, client_accept, NULL); + return; +