# HG changeset patch # User Franz Glasner # Date 1660648291 -7200 # Node ID 2e7d0c967c3688ae219ebd45faef312503b125a0 # Parent ea491007d7fbfe06d94984b8a42fb0356d3bde3a Print a message when tar errors regaring ./var/empty are ignored diff -r ea491007d7fb -r 2e7d0c967c36 sbin/fjail --- a/sbin/fjail Tue Aug 16 13:03:29 2022 +0200 +++ b/sbin/fjail Tue Aug 16 13:11:31 2022 +0200 @@ -280,7 +280,7 @@ # If /var/empty exists already try to extract with changing the # flags (e.g. `schg'). But be ignore errors here. # - tar -C "${_mp}" -xJp -f "${_basetxz}" ./var/empty || true + tar -C "${_mp}" -xJp -f "${_basetxz}" ./var/empty || { echo "tar warnings for handling ./var/empty ignored because ./var/empty exists already" >&2; } else # Just extract /var/empty normally tar -C "${_mp}" -xJp -f "${_basetxz}" ./var/empty || { echo "ERROR: tar encountered errors" >&2; return 1; }