summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2018-05-16 11:00:31 -0400
committerLuke Shumaker <lukeshu@parabola.nu>2018-05-20 21:56:44 -0400
commit172abd9998cffa3622fb8afbd0d241840dfc3946 (patch)
treee692f1b2107747b265e22a9250430ce5f9bba0cc
parent5713cd629c97c7a12a600a1dd73ad81d87374eb1 (diff)
downloaddevtools32-172abd9998cffa3622fb8afbd0d241840dfc3946.tar.xz
Do not assume the makechrootpkg user's groupname is the same as the username
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. Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
-rw-r--r--makechrootpkg.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/makechrootpkg.in b/makechrootpkg.in
index 57231d5..041e591 100644
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
@@ -250,7 +250,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 \