aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2016-11-01 06:37:21 +0800
committerbdrewery <bdrewery@FreeBSD.org>2016-11-01 06:37:21 +0800
commitbd8b6bf0df0086f4a4c5dff0ee57473b35aa2617 (patch)
tree08bbea00cec1d69d3fe4b4f84d9020b01732208e /Mk
parent12aefac6ad2c0ddc3a7a2fbfc39ae36d33ed5d34 (diff)
downloadfreebsd-ports-gnome-bd8b6bf0df0086f4a4c5dff0ee57473b35aa2617.tar.gz
freebsd-ports-gnome-bd8b6bf0df0086f4a4c5dff0ee57473b35aa2617.tar.zst
freebsd-ports-gnome-bd8b6bf0df0086f4a4c5dff0ee57473b35aa2617.zip
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
Diffstat (limited to 'Mk')
-rw-r--r--Mk/Scripts/do-users-groups.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mk/Scripts/do-users-groups.sh b/Mk/Scripts/do-users-groups.sh
index 4a48760deb72..c23ecf3fcf16 100644
--- a/Mk/Scripts/do-users-groups.sh
+++ b/Mk/Scripts/do-users-groups.sh
@@ -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