Bug 250099

Summary: net/frr7: small defect in the startup script
Product: Ports & Packages Reporter: Eugene Grosbein <eugen>
Component: Individual Port(s)Assignee: Olivier Cochard <olivier>
Status: Closed FIXED    
Severity: Affects Only Me CC: olivier
Priority: --- Flags: bugzilla: maintainer-feedback? (olivier)
eugen: maintainer-feedback? (olivier)
Version: Latest   
Hardware: Any   
OS: Any   

Description Eugene Grosbein freebsd_committer freebsd_triage 2020-10-04 17:25:23 UTC
Startup script of net/frr7 port contains unquoted call $(check_process ${command}) that may return a list, not single token only.

In such case, the test [ -z $(check_process ${command}) ]
emits syntax error similar to:

[: 1176: unexpected operator

It needs double quotes: [ -z "$(check_process ${command})" ]

Normally, this error should not happen unless there is unrelated process in the system selected by check_process subroutine in addition to one of frr's.
Comment 1 commit-hook freebsd_committer freebsd_triage 2020-10-05 07:48:36 UTC
A commit references this bug:

Author: olivier
Date: Mon Oct  5 07:48:18 UTC 2020
New revision: 551478
URL: https://svnweb.freebsd.org/changeset/ports/551478

Log:
  Harden RC script by adding double quotes.
  While here, document usage of frr_vtysh_boot.

  PR:		250099
  Submitted by:	eugen

Changes:
  head/net/frr7/Makefile
  head/net/frr7/files/frr.in
Comment 2 Olivier Cochard freebsd_committer freebsd_triage 2020-10-05 07:49:47 UTC
Thanks Eugene!