# HG changeset patch # User Franz Glasner # Date 1661072458 -7200 # Node ID dd8a9bbdf8c074563921422389a16e339904346e # Parent 3181a6b5758ebdb3d2ccd99d2f67dc48d89e0415 Better error handling when changing privileges and flags of var/empty diff -r 3181a6b5758e -r dd8a9bbdf8c0 sbin/fjail --- a/sbin/fjail Sun Aug 21 10:49:00 2022 +0200 +++ b/sbin/fjail Sun Aug 21 11:00:58 2022 +0200 @@ -504,8 +504,8 @@ fi fi # Set the access rights and the file flags as given in mtree - chmod 0555 "${_mp}/var/empty" - chflags schg "${_mp}/var/empty" + chmod 0555 "${_mp}/var/empty" || { echo "WARNING: Cannot chmod on var/empty" >&2; } + 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; }