Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
comparison sbin/fjail @ 550:847ae246f3cc
Make the port really DATADIR and EXAMPLESDIR safe because the user may redefine DATADIR and EXAMPLESDIR.
pkg-plist must use DATADIR and EXAMPLESDIR.
The scripts must search for common.subr and farray.sh more intelligently.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Tue, 10 Sep 2024 21:10:27 +0200 |
| parents | c615279bb797 |
| children | 4f2257ea7d0a |
comparison
equal
deleted
inserted
replaced
| 549:48b31d24d71d | 550:847ae246f3cc |
|---|---|
| 13 | 13 |
| 14 ' | 14 ' |
| 15 | 15 |
| 16 set -eu | 16 set -eu |
| 17 | 17 |
| 18 VERSION="@@VERSION@@" | 18 VERSION='@@VERSION@@' |
| 19 | 19 |
| 20 USAGE=' | 20 USAGE=' |
| 21 USAGE: fjail [ OPTIONS ] COMMAND [ COMMAND OPTIONS ] [ ARG ... ] | 21 USAGE: fjail [ OPTIONS ] COMMAND [ COMMAND OPTIONS ] [ ARG ... ] |
| 22 | 22 |
| 23 OPTIONS: | 23 OPTIONS: |
| 93 All commands with the exception of "populate" require ZFS as | 93 All commands with the exception of "populate" require ZFS as |
| 94 filesystem. | 94 filesystem. |
| 95 ' | 95 ' |
| 96 | 96 |
| 97 | 97 |
| 98 _p_datadir="$(dirname "$0")"/../share/local-bsdtools | 98 _p_datadir='@@DATADIR@@' |
| 99 [ "${_p_datadir#@@DATADIR}" = '@@' ] && _p_datadir="$(dirname "$0")"/../share/local-bsdtools | |
| 99 . "${_p_datadir}/common.subr" | 100 . "${_p_datadir}/common.subr" |
| 100 | 101 |
| 101 | 102 |
| 102 # Reset to standard umask | 103 # Reset to standard umask |
| 103 umask 0022 | 104 umask 0022 |
