diff options
author | antoine <antoine@FreeBSD.org> | 2014-12-02 01:57:19 +0800 |
---|---|---|
committer | antoine <antoine@FreeBSD.org> | 2014-12-02 01:57:19 +0800 |
commit | 60eecdb6e209e7ac9a0decf3c3d2674a874a3ff5 (patch) | |
tree | 19e8ea8641ed4789bea98451466c37307a4eb388 /Mk | |
parent | 79f3bf92bd97b56f36d71cce598972e9c3b83fe4 (diff) | |
download | freebsd-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.sh | 2 |
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) |