Ignore:
Timestamp:
Jul 31, 2011, 9:56:52 AM (9 years ago)
Author:
jmr@…
Message:

set a RealName for runuser to work around Tiger System Preferences bug, and add missing root privileges check in makefile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/Makefile.in

    r81454 r81467  
    5656                done; \
    5757                ${DSCL} -q . -create /Users/${RUNUSR} UniqueID $$NEXTUID ; \
     58                ${DSCL} -q . -create /Users/${RUNUSR} RealName MacPorts ; \
    5859                ${DSCL} -q . -create /Users/${RUNUSR} Password \* ; \
    5960                ${DSCL} -q . -create /Users/${RUNUSR} PrimaryGroupID $$(${DSCL} -q . -read /Groups/${RUNUSR} PrimaryGroupID | /usr/bin/awk '{print $$2}') ; \
     
    6465            fi ; \
    6566        fi ; \
    66         if test `sw_vers -productVersion | /usr/bin/awk -F . '{print $$2}'` -eq 4; then \
     67        if test `sw_vers -productVersion | /usr/bin/awk -F . '{print $$2}'` -eq 4 -a `id -u` -eq 0; then \
    6768            GID=`${DSCL} -q . -read /Groups/${RUNUSR} PrimaryGroupID | /usr/bin/awk '{print $$2}'` ; \
    6869            if test "`${DSCL} -q . -read /Users/${RUNUSR} PrimaryGroupID 2>/dev/null | /usr/bin/awk '{print $$2}'`" != "$$GID"; then \
    6970                echo "Fixing PrimaryGroupID for user \"${RUNUSR}\"" ; \
    7071                ${DSCL} -q . -create /Users/${RUNUSR} PrimaryGroupID $$GID ; \
     72                ${DSCL} -q . -create /Users/${RUNUSR} RealName MacPorts ; \
    7173            fi ; \
    7274        fi ; \
Note: See TracChangeset for help on using the changeset viewer.