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:
parent
a4732e3583
commit
a58de88b0c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user