aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2014-12-02 01:57:19 +0800
committerantoine <antoine@FreeBSD.org>2014-12-02 01:57:19 +0800
commit60eecdb6e209e7ac9a0decf3c3d2674a874a3ff5 (patch)
tree19e8ea8641ed4789bea98451466c37307a4eb388 /Mk
parent79f3bf92bd97b56f36d71cce598972e9c3b83fe4 (diff)
downloadfreebsd-ports-gnome-60eecdb6e209e7ac9a0decf3c3d2674a874a3ff5.tar.gz
freebsd-ports-gnome-60eecdb6e209e7ac9a0decf3c3d2674a874a3ff5.tar.zst
freebsd-ports-gnome-60eecdb6e209e7ac9a0decf3c3d2674a874a3ff5.zip
Fix a false positive home directory leftover for ports with multiple USERS
or with USERS matching another user in UIDs Reported by: adamw (mail/spamassassin) With hat: portmgr
Diffstat (limited to 'Mk')
-rw-r--r--Mk/Scripts/check_leftovers.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mk/Scripts/check_leftovers.sh b/Mk/Scripts/check_leftovers.sh
index fb17f53ae2e3..d8aa39df6372 100644
--- a/Mk/Scripts/check_leftovers.sh
+++ b/Mk/Scripts/check_leftovers.sh
@@ -40,7 +40,7 @@ if [ -n "${LOCALBASE}" ]; then
else
LOCALBASE=$(make -C ${portdir} -VLOCALBASE)
fi
-homedirs=$(awk -F: -v users=$(make -C ${portdir} -V USERS|sed -e 's, ,|,g;/^$/d') 'users && $1 ~ users {print $9}' ${PORTSDIR}/UIDs|sort -u|sed -e "s|/usr/local|${PREFIX}|")
+homedirs=$(awk -F: -v users=$(make -C ${portdir} -V USERS|sed -e 's, ,|,g;/^$/d;s,^,^(,;s,$,)$,') 'users && $1 ~ users {print $9}' ${PORTSDIR}/UIDs|sort -u|sed -e "s|/usr/local|${PREFIX}|"|tr "\n" " ")
plistsub_sed=$(make -C ${portdir} -VPLIST_SUB_SED | /bin/sh ${PORTSDIR}/Mk/Scripts/plist_sub_sed_sort.sh)
tmpplist=$(make -C ${portdir} -VTMPPLIST)