# HG changeset patch # User Franz Glasner # Date 1661072779 -7200 # Node ID a8b6584d24eced806f6c91ac33f8a602ba1ec750 # Parent dd8a9bbdf8c074563921422389a16e339904346e FIX: Do not suppress stderr messages from some "zfs set" calls. This gives better error messages. diff -r dd8a9bbdf8c0 -r a8b6584d24ec sbin/fjail --- a/sbin/fjail Sun Aug 21 11:00:58 2022 +0200 +++ b/sbin/fjail Sun Aug 21 11:06:19 2022 +0200 @@ -500,7 +500,7 @@ ${_get} EOF if [ "${_vestatus}" = "on" ]; then - zfs set readonly=off ${_veds} >/dev/null 2>/dev/null || { echo "ERROR: cannot reset readonly-status of ${_mp}/var/empty" >&2; return 1; } + zfs set readonly=off ${_veds} 1> /dev/null || { echo "ERROR: cannot reset readonly-status of ${_mp}/var/empty" >&2; return 1; } fi fi # Set the access rights and the file flags as given in mtree @@ -508,7 +508,7 @@ chflags schg "${_mp}/var/empty" || { echo "WARNING: Cannot chflags on var/empty" >&2; } # Reset the read-only status of the mountpoint as it was before if [ "${_vestatus}" = "on" ]; then - zfs set readonly=on ${_veds} >/dev/null 2>/dev/null || { echo "ERROR: cannot reactivate readonly-status of ${_mp}/var/empty" >&2; return 1; } + zfs set readonly=on ${_veds} 1> /dev/null || { echo "ERROR: cannot reactivate readonly-status of ${_mp}/var/empty" >&2; return 1; } fi }