Date: Tue, 14 Dec 2010 06:07:19 +0000 (UTC) From: Gordon Tetlow <gordon@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r216426 - head/usr.bin/man Message-ID: <201012140607.oBE67Jhj005478@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: gordon Date: Tue Dec 14 06:07:18 2010 New Revision: 216426 URL: http://svn.freebsd.org/changeset/base/216426 Log: Move sysctl invocation to using a variable that's fully pathed. This prevents errors for users that don't have /sbin in their PATH. Submitted by: Max Boyarov Approved by: mentor (wes@ implicit) Modified: head/usr.bin/man/man.sh Modified: head/usr.bin/man/man.sh ============================================================================== --- head/usr.bin/man/man.sh Tue Dec 14 05:47:35 2010 (r216425) +++ head/usr.bin/man/man.sh Tue Dec 14 06:07:18 2010 (r216426) @@ -535,10 +535,10 @@ man_setup() { MACHINE=${mflag##*:} fi if [ -z "$MACHINE_ARCH" ]; then - MACHINE_ARCH=$(sysctl -n hw.machine_arch) + MACHINE_ARCH=$($SYSCTL -n hw.machine_arch) fi if [ -z "$MACHINE" ]; then - MACHINE=$(sysctl -n hw.machine) + MACHINE=$($SYSCTL -n hw.machine) fi decho "Using architecture: $MACHINE_ARCH:$MACHINE" @@ -895,6 +895,7 @@ EQN=/usr/bin/eqn COL=/usr/bin/col NROFF='/usr/bin/groff -S -Wall -mtty-char -man' PIC=/usr/bin/pic +SYSCTL=/sbin/sysctl TBL=/usr/bin/tbl TROFF='/usr/bin/groff -S -man' REFER=/usr/bin/refer
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201012140607.oBE67Jhj005478>