diff --git a/makechrootpkg.in b/makechrootpkg.in index 9ed7161698a87caf62636ef64c893613f5d34c96..0535c8cf2ac9446817675bb9653d0e1808bafc4f 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