summaryrefslogtreecommitdiff
path: root/makechrootpkg.in
diff options
context:
space:
mode:
Diffstat (limited to 'makechrootpkg.in')
-rw-r--r--makechrootpkg.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/makechrootpkg.in b/makechrootpkg.in
index 13d6eb2..eb5a4ad 100644
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
@@ -268,6 +268,7 @@ download_sources() {
local makepkg_user=$2
setup_workdir
+ chown "$makepkg_user" "$WORKDIR"
# Ensure sources are downloaded
sudo -u "$makepkg_user" env SRCDEST="$SRCDEST" BUILDDIR="$WORKDIR" \