# HG changeset patch # User Franz Glasner # Date 1661073587 -7200 # Node ID 8f739dd15d7f6d32fb296a3a5871fa6e59deb248 # Parent a8b6584d24eced806f6c91ac33f8a602ba1ec750 FIX: Use "||" instead of "|" when handling an error case diff -r a8b6584d24ec -r 8f739dd15d7f sbin/fjail --- a/sbin/fjail Sun Aug 21 11:06:19 2022 +0200 +++ b/sbin/fjail Sun Aug 21 11:19:47 2022 +0200 @@ -451,7 +451,7 @@ { echo "ERROR: no dataset given" >&2; return 2; } # Just determine whether the given dataset name exists - _rootds_mountpoint="$(zfs list -H -o mountpoint -t filesystem "${_dsname}")" | return 1 + _rootds_mountpoint="$(zfs list -H -o mountpoint -t filesystem "${_dsname}")" || { echo "ERROR: dataset not found" >&2; return 1; } mount -t zfs -p | \ grep -E "^${_dsname}(/|\s)" | \