git: 2ec4b08c4d5f - main - sysutils/vpnc-scripts: Fix invalid ps(1) argument
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 09 Jan 2026 15:52:00 UTC
The branch main has been updated by zi:
URL: https://cgit.FreeBSD.org/ports/commit/?id=2ec4b08c4d5f37c6351bb90644e70a96b768e8e0
commit 2ec4b08c4d5f37c6351bb90644e70a96b768e8e0
Author: Ryan Steinmetz <zi@FreeBSD.org>
AuthorDate: 2026-01-09 15:51:07 +0000
Commit: Ryan Steinmetz <zi@FreeBSD.org>
CommitDate: 2026-01-09 15:51:07 +0000
sysutils/vpnc-scripts: Fix invalid ps(1) argument
PR: 292298
Submitted by: John Baldwin <jhb@FreeBSD.org>
---
sysutils/vpnc-scripts/Makefile | 1 +
sysutils/vpnc-scripts/files/patch-vpnc-script | 11 +++++++++++
2 files changed, 12 insertions(+)
diff --git a/sysutils/vpnc-scripts/Makefile b/sysutils/vpnc-scripts/Makefile
index 787d03a59656..516fc8771e78 100644
--- a/sysutils/vpnc-scripts/Makefile
+++ b/sysutils/vpnc-scripts/Makefile
@@ -1,5 +1,6 @@
PORTNAME= vpnc-scripts
PORTVERSION= 20220510
+PORTREVISION= 1
CATEGORIES= sysutils net-vpn
MASTER_SITES= ftp://ftp.infradead.org/pub/${PORTNAME}/ \
ZI
diff --git a/sysutils/vpnc-scripts/files/patch-vpnc-script b/sysutils/vpnc-scripts/files/patch-vpnc-script
new file mode 100644
index 000000000000..1ccd01830765
--- /dev/null
+++ b/sysutils/vpnc-scripts/files/patch-vpnc-script
@@ -0,0 +1,11 @@
+--- vpnc-script.orig 2026-01-09 15:18:59 UTC
++++ vpnc-script
+@@ -97,7 +97,7 @@ if [ -z "$VPNPID" ]; then
+ # OpenConnect v9.0+ provides VPNPID, so we don't need to determine it.
+ if [ -z "$VPNPID" ]; then
+ VPNPID=$PPID
+- PCMD=`ps -c -o cmd= -p $PPID`
++ PCMD=`ps -c -o command= -p $PPID`
+ case "$PCMD" in
+ *sh) VPNPID=`ps -o ppid= -p $PPID` ;;
+ esac