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:
parent
49a53a6968
commit
96ec1d6406
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=497567
@ -2,6 +2,7 @@
|
||||
|
||||
PORTNAME= cbsd
|
||||
DISTVERSION= 12.0.8
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= sysutils
|
||||
|
||||
MAINTAINER= olevole@olevole.ru
|
||||
|
15
sysutils/cbsd/files/patch-nc.subr
Normal file
15
sysutils/cbsd/files/patch-nc.subr
Normal 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}'";
|
Loading…
Reference in New Issue
Block a user