mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
- Fix HOMEDIR handling to not exclude all directories for ports without USERS
Reported by: antoine With hat: portmgr
This commit is contained in:
parent
e0e4f6e0e6
commit
193b6cc6d8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=351480
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ if [ -n "${LOCALBASE}" ]; then
|
||||||
else
|
else
|
||||||
LOCALBASE=$(make -C ${portdir} -VLOCALBASE)
|
LOCALBASE=$(make -C ${portdir} -VLOCALBASE)
|
||||||
fi
|
fi
|
||||||
homedirs=$(awk -F: -v users=$(make -C ${portdir} -V USERS|sed -e 's, ,|,g;/^$/d') '$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') 'users && $1 ~ users {print $9}' ${PORTSDIR}/UIDs|sort -u|sed -e "s|/usr/local|${PREFIX}|")
|
||||||
plistsub_sed=$(make -C ${portdir} -VPLIST_SUB_SED)
|
plistsub_sed=$(make -C ${portdir} -VPLIST_SUB_SED)
|
||||||
tmpplist=$(make -C ${portdir} -VTMPPLIST)
|
tmpplist=$(make -C ${portdir} -VTMPPLIST)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue