Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Apr 2019 17:13:23 +0000 (UTC)
From:      Kirill Ponomarev <krion@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r497567 - in head/sysutils/cbsd: . files
Message-ID:  <201904021713.x32HDN43093930@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: krion
Date: Tue Apr  2 17:13:23 2019
New Revision: 497567
URL: https://svnweb.freebsd.org/changeset/ports/497567

Log:
  Add fix for cbsd taskd args
  
  PR:		236968
  Submitted by:	maintainer

Added:
  head/sysutils/cbsd/files/patch-nc.subr   (contents, props changed)
Modified:
  head/sysutils/cbsd/Makefile

Modified: head/sysutils/cbsd/Makefile
==============================================================================
--- head/sysutils/cbsd/Makefile	Tue Apr  2 16:30:29 2019	(r497566)
+++ head/sysutils/cbsd/Makefile	Tue Apr  2 17:13:23 2019	(r497567)
@@ -2,6 +2,7 @@
 
 PORTNAME=	cbsd
 DISTVERSION=	12.0.8
+PORTREVISION=	1
 CATEGORIES=	sysutils
 
 MAINTAINER=	olevole@olevole.ru

Added: head/sysutils/cbsd/files/patch-nc.subr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/cbsd/files/patch-nc.subr	Tue Apr  2 17:13:23 2019	(r497567)
@@ -0,0 +1,15 @@
+--- nc.subr.orig	2019-04-01 20:14:44 UTC
++++ nc.subr
+@@ -139,9 +139,10 @@ init() {
+ 		VAL=$( substr --pos=$(( ${_pos} +2 )) --len=${_pref} --str="${1}" )
+ 		IFS=" "
+ 		VAL=$( echo ${VAL} | /usr/bin/tr -d '"' )		# strip extra quotes
+-		if [ ${double_args} -eq 0 -a -n "${VAL}" ]; then
++		if [ ${double_args} -eq 0 ]; then
+ 			shift
+-			continue	# value already set, skip
++			eval T="\$$ARG"
++			[ -n "${T}" ] && continue	# value already set, skip
+ 		fi
+ 		i=$(( i + 1 ))
+ 		eval "${ARG}='${VAL}'";



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201904021713.x32HDN43093930>