From owner-svn-ports-head@freebsd.org Fri Oct 26 21:56:11 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8E10810C91ED; Fri, 26 Oct 2018 21:56:11 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3D9FB6CAC1; Fri, 26 Oct 2018 21:56:11 +0000 (UTC) (envelope-from tobik@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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 1C09426BEE; Fri, 26 Oct 2018 21:56:11 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w9QLuAEm018996; Fri, 26 Oct 2018 21:56:10 GMT (envelope-from tobik@FreeBSD.org) Received: (from tobik@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w9QLuANx018994; Fri, 26 Oct 2018 21:56:10 GMT (envelope-from tobik@FreeBSD.org) Message-Id: <201810262156.w9QLuANx018994@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tobik set sender to tobik@FreeBSD.org using -f From: Tobias Kortkamp Date: Fri, 26 Oct 2018 21:56:10 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r483060 - in head/sysutils/yank: . files X-SVN-Group: ports-head X-SVN-Commit-Author: tobik X-SVN-Commit-Paths: in head/sysutils/yank: . files X-SVN-Commit-Revision: 483060 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Oct 2018 21:56:11 -0000 Author: tobik Date: Fri Oct 26 21:56:10 2018 New Revision: 483060 URL: https://svnweb.freebsd.org/changeset/ports/483060 Log: sysutils/yank: fix crash when using -g with -l Added: head/sysutils/yank/files/patch-yank.c (contents, props changed) Modified: head/sysutils/yank/Makefile Modified: head/sysutils/yank/Makefile ============================================================================== --- head/sysutils/yank/Makefile Fri Oct 26 21:35:38 2018 (r483059) +++ head/sysutils/yank/Makefile Fri Oct 26 21:56:10 2018 (r483060) @@ -2,7 +2,7 @@ PORTNAME= yank DISTVERSION= 1.0.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= sysutils MASTER_SITES= https://github.com/mptre/yank/releases/download/v${DISTVERSION}/ Added: head/sysutils/yank/files/patch-yank.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/yank/files/patch-yank.c Fri Oct 26 21:56:10 2018 (r483060) @@ -0,0 +1,12 @@ +--- yank.c.orig 2018-09-09 07:45:36 UTC ++++ yank.c +@@ -430,7 +430,8 @@ main(int argc, char *argv[]) + break; + case 'g': + free(pat); +- pat = optarg; ++ if ((pat = strdup(optarg)) == NULL) ++ err(1, NULL); + rflags |= REG_NEWLINE; + break; + case 'i':