Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
comparison sbin/fjail @ 701:18fe9674a0e5
fjail: FIX: Use of an invalid local variable name: "_mp" -> "_pmp"
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Tue, 01 Oct 2024 20:10:14 +0200 |
| parents | 31953a5653e9 |
| children | 70b16773945f |
comparison
equal
deleted
inserted
replaced
| 700:31953a5653e9 | 701:18fe9674a0e5 |
|---|---|
| 200 _pds="$1" | 200 _pds="$1" |
| 201 if [ -z "${_pds}" ]; then | 201 if [ -z "${_pds}" ]; then |
| 202 echo "ERROR: no parent dataset given" >&2 | 202 echo "ERROR: no parent dataset given" >&2 |
| 203 return 2 | 203 return 2 |
| 204 fi | 204 fi |
| 205 _pmp=$(zfs list -H -o mountpoint -t filesystem "${_pds}" 2>/dev/null) || { echo "ERROR: dataset \`${_pds}' does not exist" >&2; return 1; } | 205 _pmp="$(zfs list -H -o mountpoint -t filesystem "${_pds}" 2>/dev/null)" || { err "dataset \`${_pds}' does not exist"; return 1; } |
| 206 case "${_pmp}" in | 206 case "${_pmp}" in |
| 207 none) | 207 none) |
| 208 echo "ERROR: dataset \`${_pds}' has no mountpoint" >&2 | 208 err "dataset \`${_pds}' has no mountpoint" |
| 209 return 1 | 209 return 1 |
| 210 ;; | 210 ;; |
| 211 legacy) | 211 legacy) |
| 212 echo "ERROR: dataset \`${_pds}' has a \`${_mp}' mountpoint" >&2 | 212 err "dataset \`${_pds}' has a \`${_pmp}' mountpoint" |
| 213 return 1 | 213 return 1 |
| 214 ;; | 214 ;; |
| 215 *) | 215 *) |
| 216 # VOID | 216 # VOID |
| 217 ;; | 217 ;; |
