Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Jun 2020 01:25:19 +0000 (UTC)
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r361683 - head/usr.sbin/certctl
Message-ID:  <202006010125.0511PJw3044666@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kevans
Date: Mon Jun  1 01:25:19 2020
New Revision: 361683
URL: https://svnweb.freebsd.org/changeset/base/361683

Log:
  certctl: fix test syntax
  
  test doesn't understand &&, but it does understand -a.
  
  MFC after:	1 week

Modified:
  head/usr.sbin/certctl/certctl.sh

Modified: head/usr.sbin/certctl/certctl.sh
==============================================================================
--- head/usr.sbin/certctl/certctl.sh	Sun May 31 22:46:32 2020	(r361682)
+++ head/usr.sbin/certctl/certctl.sh	Mon Jun  1 01:25:19 2020	(r361683)
@@ -102,7 +102,7 @@ do_scan()
 		[ -d "$CPATH" ] || continue
 		echo "Scanning $CPATH for certificates..."
 		for CFILE in $(ls -1 "${CPATH}" | grep -Ee "${FILEPAT}"); do
-			[ -e "$CPATH/$CFILE" && $UNPRIV -eq 0 ] || continue
+			[ -e "$CPATH/$CFILE" -a $UNPRIV -eq 0 ] || continue
 			[ $VERBOSE -gt 0 ] && echo "Reading $CFILE"
 			"$CFUNC" "$CPATH/$CFILE"
 		done



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