INSTALL_AS_USER: output of id -un will never match 0 so use id -u

and USER for BINOWN etc.

Approved by:	marcel (mentor)
This commit is contained in:
Simon J. Gerraty 2012-11-22 04:50:42 +00:00
parent a4732e3583
commit a58de88b0c

View File

@ -678,11 +678,14 @@ CTFCONVERT_CMD= @:
.endif
.if ${MK_INSTALL_AS_USER} != "no"
_uid!= id -un
_uid!= id -u
.if ${_uid} != 0
.if !defined(USER)
USER!= id -un
.endif
_gid!= id -gn
.for x in BIN CONF DOC INFO KMOD LIB MAN NLS SHARE
$xOWN= ${_uid}
$xOWN= ${USER}
$xGRP= ${_gid}
.endfor
.endif