svn commit: r483060 - in head/sysutils/yank: . files

Tobias Kortkamp tobik at FreeBSD.org
Fri Oct 26 21:56:11 UTC 2018


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':


More information about the svn-ports-head mailing list