diff options
author | bdrewery <bdrewery@FreeBSD.org> | 2015-11-25 19:44:58 +0000 |
---|---|---|
committer | bdrewery <bdrewery@FreeBSD.org> | 2015-11-25 19:44:58 +0000 |
commit | 4e6be44af666a39e9c4d04fc4f873ec1f2d23775 (patch) | |
tree | d9f15250d2ad8ba8be2a15f9ab596b98ce2b83ee | |
parent | d9de886cd48b48a8d00036234250d7c890908c83 (diff) | |
download | FreeBSD-src-4e6be44af666a39e9c4d04fc4f873ec1f2d23775.zip FreeBSD-src-4e6be44af666a39e9c4d04fc4f873ec1f2d23775.tar.gz |
Stop looking up the same id(1) results in sub-makes.
Sponsored by: EMC / Isilon Storage Division
-rw-r--r-- | share/mk/bsd.own.mk | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/share/mk/bsd.own.mk b/share/mk/bsd.own.mk index cf3bee6..9f33424 100644 --- a/share/mk/bsd.own.mk +++ b/share/mk/bsd.own.mk @@ -133,12 +133,23 @@ CTFCONVERT_CMD= @: .endif .if ${MK_INSTALL_AS_USER} != "no" +.if !defined(_uid) _uid!= id -u +.export _uid +.endif .if ${_uid} != 0 .if !defined(USER) -USER!= id -un +# Avoid exporting USER +.if !defined(_USER) +_USER!= id -un +.export _USER +.endif +USER= ${_USER} .endif +.if !defined(_gid) _gid!= id -g +.export _gid +.endif .for x in BIN CONF DOC DTB INFO KMOD LIB MAN NLS SHARE $xOWN= ${USER} $xGRP= ${_gid} |