Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
diff 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 |
line wrap: on
line diff
--- a/sbin/fjail Tue Sep 10 19:48:07 2024 +0200 +++ b/sbin/fjail Tue Sep 10 21:10:27 2024 +0200 @@ -15,7 +15,7 @@ set -eu -VERSION="@@VERSION@@" +VERSION='@@VERSION@@' USAGE=' USAGE: fjail [ OPTIONS ] COMMAND [ COMMAND OPTIONS ] [ ARG ... ] @@ -95,7 +95,8 @@ ' -_p_datadir="$(dirname "$0")"/../share/local-bsdtools +_p_datadir='@@DATADIR@@' +[ "${_p_datadir#@@DATADIR}" = '@@' ] && _p_datadir="$(dirname "$0")"/../share/local-bsdtools . "${_p_datadir}/common.subr"
