1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-18 02:19:39 +00:00

There is no guarantee that our group has a name.

Since the results are temp, just subst [gu]name for [gu]id

Reviewed by: obrien
This commit is contained in:
Simon J. Gerraty 2014-05-02 00:45:30 +00:00
parent 3b8f084595
commit 63efcf90b9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/bmake/; revision=265204

View File

@ -319,10 +319,11 @@ distribution:
MTREE_CMD?= mtree
.if ${MK_INSTALL_AS_USER} != "no" && ${_uid} != 0
MTREE_FILTER= sed -e 's,\(uname=\)[^ ]* ,\1${BINOWN} ,' \
-e 's,\(gname=\)[^ ]* ,\1${BINGRP} ,' \
MTREE_FILTER= sed -e 's,\([gu]\)name=,\1id=,g' \
-e 's,\(uid=\)[^ ]* ,\1${_uid} ,' \
-e 's,\(gid=\)[^ ]* ,\1${_gid} ,'
-e 's,\(gid=\)[^ ]* ,\1${_gid} ,' \
-e 's,\(uid=\)[^ ]*$$,\1${_uid},' \
-e 's,\(gid=\)[^ ]*$$,\1${_gid},'
.else
MTREE_FILTER= cat
.endif