Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
changeset 199:a8b6584d24ec
FIX: Do not suppress stderr messages from some "zfs set" calls.
This gives better error messages.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sun, 21 Aug 2022 11:06:19 +0200 |
| parents | dd8a9bbdf8c0 |
| children | 8f739dd15d7f |
| files | sbin/fjail |
| diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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 }
