diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2018-05-16 10:37:55 -0400 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2018-05-16 10:37:55 -0400 |
commit | 7fcf847bc37fb014d38dcb5c37ea3abc75e1889a (patch) | |
tree | ae2b4bc269d29ff9c5a3ab84c83fefee115e337e | |
parent | 5b3c14454a9c1ec00a3ef11f3f599281127b383d (diff) | |
download | devtools-20180528.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.in | 2 |
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 \ |