1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

Add fix for cbsd taskd args

PR:		236968
Submitted by:	maintainer
This commit is contained in:
Kirill Ponomarev 2019-04-02 17:13:23 +00:00
parent 49a53a6968
commit 96ec1d6406
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=497567
2 changed files with 16 additions and 0 deletions

View File

@ -2,6 +2,7 @@
PORTNAME= cbsd
DISTVERSION= 12.0.8
PORTREVISION= 1
CATEGORIES= sysutils
MAINTAINER= olevole@olevole.ru

View File

@ -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}'";