From a26416dca3c4ada1baf76712c43332bc960f9c20 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Wed, 3 Oct 2012 12:32:55 +0200 Subject: makechrootpkg: do not run namcap as root --- makechrootpkg.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.2