Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
diff sbin/ftjail @ 633:edad318c022d
ftjail: FIX: also quote the use of "_dir_basename"
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Tue, 24 Sep 2024 19:13:30 +0200 |
| parents | 3aeb21629c27 |
| children | 4f2257ea7d0a |
line wrap: on
line diff
--- a/sbin/ftjail Tue Sep 24 19:10:41 2024 +0200 +++ b/sbin/ftjail Tue Sep 24 19:13:30 2024 +0200 @@ -983,7 +983,7 @@ # start with "ro," # _root_origin="$(zfs list -H -o origin "${_root_dataset}")" - _u_tmpdir="$(env TMPDIR=/var/tmp mktemp -d -t ftjail_${_dir_basename})" + _u_tmpdir="$(env TMPDIR=/var/tmp mktemp -d -t ftjail_"${_dir_basename}")" [ -z "${_u_tmpdir}" ] && { echo "ERROR: cannot create unique temp dir" 1>&2; return 1; } # The fstab that is corrently mounted at relevant locations (normalized) _dir_fn_fstab="${_u_tmpdir}/fstab"
