[Bug 289368] If $BASEDIR is undefined, then refusal to run freebsd-update is ineffective on a pkgbase system
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 08 Sep 2025 12:04:47 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289368
Mark Millard <marklmi26-fbsd@yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |marklmi26-fbsd@yahoo.com
--- Comment #3 from Mark Millard <marklmi26-fbsd@yahoo.com> ---
(In reply to Dave Cottlehuber from comment #2)
The below does not define BASEDIR to be a nonempty path if it is initially
undefined or is empty? check_pkgbase then expands it to nothing, not even to an
explicit empty string? pkg -c -N and pkg -c which result?
#### Entry point
# Make sure we find utilities from the base system
export PATH=/sbin:/bin:/usr/sbin:/usr/bin:${PATH}
# Set a pager if the user doesn't
if [ -z "$PAGER" ]; then
PAGER=/usr/bin/less
fi
# Set LC_ALL in order to avoid problems with character ranges like [A-Z].
export LC_ALL=C
# Clear environment variables that may affect operation of tools that we use.
unset GREP_OPTIONS
# Disallow use with packaged base.
check_pkgbase
get_params $@
for COMMAND in ${COMMANDS}; do
cmd_${COMMAND}
done
--
You are receiving this mail because:
You are on the CC list for the bug.