summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2018-05-16 16:37:55 +0200
committerEli Schwartz <eschwartz@archlinux.org>2018-05-16 16:37:55 +0200
commit7fcf847bc37fb014d38dcb5c37ea3abc75e1889a (patch)
treeae2b4bc269d29ff9c5a3ab84c83fefee115e337e
parent5b3c14454a9c1ec00a3ef11f3f599281127b383d (diff)
downloaddevtools-7fcf847bc37fb014d38dcb5c37ea3abc75e1889a.tar.gz
devtools-7fcf847bc37fb014d38dcb5c37ea3abc75e1889a.tar.xz
Do not assume the makechrootpkg user's groupname is the same as the username20180528
chown support "$user:$group" but also "$user:" which infers $group rather than leaving it as root. This looks up the group name in cases where the default group is e.g. "users" and users do not get their own unique groups.
-rw-r--r--makechrootpkg.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/makechrootpkg.in b/makechrootpkg.in
index f709955..37e97e7 100644
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
@@ -245,7 +245,7 @@ download_sources() {
local builddir
builddir="$(mktemp -d)"
- chown "$makepkg_user:$makepkg_user" "$builddir"
+ chown "$makepkg_user:" "$builddir"
# Ensure sources are downloaded
sudo -u "$makepkg_user" --preserve-env=GNUPGHOME \