Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
diff sbin/ftjail @ 556:a593dce19f54
ftjail: FIX: do not append to a fstab but overwrite completely
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Wed, 11 Sep 2024 12:59:16 +0200 |
| parents | 2fda9ab57359 |
| children | 3afebbaf613b |
line wrap: on
line diff
--- 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}"
