From owner-svn-ports-all@freebsd.org Mon Nov 13 16:58:15 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 E45D1DBF313; Mon, 13 Nov 2017 16:58:15 +0000 (UTC) (envelope-from brd@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 B16DE74FD9; Mon, 13 Nov 2017 16:58:15 +0000 (UTC) (envelope-from brd@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vADGwEQc031570; Mon, 13 Nov 2017 16:58:14 GMT (envelope-from brd@FreeBSD.org) Received: (from brd@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vADGwETq031568; Mon, 13 Nov 2017 16:58:14 GMT (envelope-from brd@FreeBSD.org) Message-Id: <201711131658.vADGwETq031568@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: brd set sender to brd@FreeBSD.org using -f From: Brad Davis Date: Mon, 13 Nov 2017 16:58:14 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r454126 - in head/security/sudo: . files X-SVN-Group: ports-head X-SVN-Commit-Author: brd X-SVN-Commit-Paths: in head/security/sudo: . files X-SVN-Commit-Revision: 454126 X-SVN-Commit-Repository: ports 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.25 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, 13 Nov 2017 16:58:16 -0000 Author: brd Date: Mon Nov 13 16:58:14 2017 New Revision: 454126 URL: https://svnweb.freebsd.org/changeset/ports/454126 Log: Pull in an upstream patch for security/sudo to not coredump if the hostname is not set. PR: 222510 Approved by: garga Added: head/security/sudo/files/patch-bug222510 (contents, props changed) Modified: head/security/sudo/Makefile Modified: head/security/sudo/Makefile ============================================================================== --- head/security/sudo/Makefile Mon Nov 13 16:49:17 2017 (r454125) +++ head/security/sudo/Makefile Mon Nov 13 16:58:14 2017 (r454126) @@ -3,6 +3,7 @@ PORTNAME= sudo PORTVERSION= 1.8.21p2 +PORTREVISION= 1 CATEGORIES= security MASTER_SITES= SUDO Added: head/security/sudo/files/patch-bug222510 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/sudo/files/patch-bug222510 Mon Nov 13 16:58:14 2017 (r454126) @@ -0,0 +1,14 @@ +diff -r 926deea0d506 -r fafb3a3083cb lib/util/gethostname.c +--- lib/util/gethostname.c Tue Oct 17 14:28:38 2017 -0600 ++++ lib/util/gethostname.c Fri Oct 20 07:37:40 2017 -0600 +@@ -42,7 +42,7 @@ + + hname = malloc(host_name_max + 1); + if (hname != NULL) { +- if (gethostname(hname, host_name_max + 1) == 0) { ++ if (gethostname(hname, host_name_max + 1) == 0 && *hname != '\0') { + /* Old gethostname() may not NUL-terminate if there is no room. */ + hname[host_name_max] = '\0'; + } else { + +