Date: Mon, 08 Sep 2025 12:04:47 +0000 From: bugzilla-noreply@freebsd.org To: pkgbase@FreeBSD.org Subject: [Bug 289368] If $BASEDIR is undefined, then refusal to run freebsd-update is ineffective on a pkgbase system Message-ID: <bug-289368-36141-KR1hYDLbHp@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-289368-36141@https.bugs.freebsd.org/bugzilla/> References: <bug-289368-36141@https.bugs.freebsd.org/bugzilla/>
index | next in thread | previous in thread | raw e-mail
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.help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-289368-36141-KR1hYDLbHp>
