# HG changeset patch # User Franz Glasner # Date 1726052356 -7200 # Node ID a593dce19f54f1dd4191852db9d67b2f60e1015f # Parent 2fda9ab5735970cfcaf873f835a3d55843a87645 ftjail: FIX: do not append to a fstab but overwrite completely diff -r 2fda9ab57359 -r a593dce19f54 sbin/ftjail --- a/sbin/ftjail Wed Sep 11 12:34:32 2024 +0200 +++ b/sbin/ftjail Wed Sep 11 12:59:16 2024 +0200 @@ -998,7 +998,7 @@ # normalized already: it uses TAB characters as field # separator exclusively. # - printf '%s' "${_dir_mounts}" >>"${_dir_fn_fstab}" + printf '%s' "${_dir_mounts}" >"${_dir_fn_fstab}" _dir_fn_tldir="${_u_tmpdir}/tldirs" LC_ALL=C /usr/bin/find "${_directory}" -depth 1 -type d 2>/dev/null | LC_ALL=C /usr/bin/sort >>"${_dir_fn_tldir}"