[Bug 174729] ports-mgmt/portmaster: should check for script running as before doing certain operations

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Feb 9 00:13:24 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=174729

w.schwarzenfeld at aon.at changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |w.schwarzenfeld at aon.at

--- Comment #6 from w.schwarzenfeld at aon.at ---
(In reply to Ngie Cooper from comment #3)
=> if ! (cd $PORTSDIR && `make -VSU_CMD` "true"); then
    echo "Please run portmaster as root/a user with sufficient privileges"
    exit 1
fi


simply this would fix it:
if [ "$(id -u)" != "0" ]; then
   echo "This script must be run as root" 1>&2
   exit 1
fi

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list