summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2012-10-03 12:32:55 +0200
committerPierre Schmitz <pierre@archlinux.de>2012-10-03 12:32:55 +0200
commita26416dca3c4ada1baf76712c43332bc960f9c20 (patch)
treef7e777e956ee049a20c34d446df3f1fb144d5338
parent37bb1d33a78130743bda3e4a0bdde3768e2b6062 (diff)
makechrootpkg: do not run namcap as root
-rw-r--r--makechrootpkg.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/makechrootpkg.in b/makechrootpkg.in
index 9ed7161..0535c8c 100644
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
@@ -275,7 +275,7 @@ if $run_namcap; then
pacman -S --needed --noconfirm namcap
for pkgfile in /build/PKGBUILD /pkgdest/*.pkg.tar.?z; do
echo "Checking \${pkgfile##*/}"
- namcap "\$pkgfile" 2>&1 | tee "/build/\${pkgfile##*/}-namcap.log"
+ sudo -u nobody namcap "\$pkgfile" 2>&1 | tee "/build/\${pkgfile##*/}-namcap.log"
done
fi