Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 632:3aeb21629c27 | 633:edad318c022d |
|---|---|
| 981 # | 981 # |
| 982 # XXX FIXME: should we check that _root_options equals "ro" or | 982 # XXX FIXME: should we check that _root_options equals "ro" or |
| 983 # start with "ro," | 983 # start with "ro," |
| 984 # _root_origin="$(zfs list -H -o origin "${_root_dataset}")" | 984 # _root_origin="$(zfs list -H -o origin "${_root_dataset}")" |
| 985 | 985 |
| 986 _u_tmpdir="$(env TMPDIR=/var/tmp mktemp -d -t ftjail_${_dir_basename})" | 986 _u_tmpdir="$(env TMPDIR=/var/tmp mktemp -d -t ftjail_"${_dir_basename}")" |
| 987 [ -z "${_u_tmpdir}" ] && { echo "ERROR: cannot create unique temp dir" 1>&2; return 1; } | 987 [ -z "${_u_tmpdir}" ] && { echo "ERROR: cannot create unique temp dir" 1>&2; return 1; } |
| 988 # The fstab that is corrently mounted at relevant locations (normalized) | 988 # The fstab that is corrently mounted at relevant locations (normalized) |
| 989 _dir_fn_fstab="${_u_tmpdir}/fstab" | 989 _dir_fn_fstab="${_u_tmpdir}/fstab" |
| 990 # The very same fstab -- but with spaces replaced by \040 | 990 # The very same fstab -- but with spaces replaced by \040 |
| 991 _dir_fn_fstab2="${_u_tmpdir}/fstab2" | 991 _dir_fn_fstab2="${_u_tmpdir}/fstab2" |
