Skip to content
Snippets Groups Projects
Commit 7fcf847b authored by Eli Schwartz's avatar Eli Schwartz
Browse files

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.
parent 5b3c1445
No related branches found
No related tags found
No related merge requests found
...@@ -245,7 +245,7 @@ download_sources() { ...@@ -245,7 +245,7 @@ download_sources() {
local builddir local builddir
builddir="$(mktemp -d)" builddir="$(mktemp -d)"
chown "$makepkg_user:$makepkg_user" "$builddir" chown "$makepkg_user:" "$builddir"
# Ensure sources are downloaded # Ensure sources are downloaded
sudo -u "$makepkg_user" --preserve-env=GNUPGHOME \ sudo -u "$makepkg_user" --preserve-env=GNUPGHOME \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment