Fix package upgrade setting wrong ownership on a package's $HOME.

This happens when the UID/GID doesn't match the expected number from
UIDs/GIDs.

https://github.com/freebsd/pkg/issues/1485 has more details.

With hat:	portmgr
Discussed with:	bapt, mat
This commit is contained in:
Bryan Drewery 2016-10-31 22:37:21 +00:00
parent 0312cef724
commit e73c0c591a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=425033

View file

@ -117,7 +117,7 @@ if [ -n "${USERS}" ]; then
/|/nonexistent|/var/empty)
;;
*)
echo "${dp_INSTALL} -d -g $gid -o $uid $homedir" >> "${dp_UG_INSTALL}"
echo "${dp_INSTALL} -d -g $login -o $login $homedir" >> "${dp_UG_INSTALL}"
;;
esac
done <<-eot