From a93e058b68187c92a57612b19f8773472d4ff9cb Mon Sep 17 00:00:00 2001 From: Rémy Oudompheng Date: Tue, 12 Apr 2011 21:30:19 +0200 Subject: makepkg.sh.in: fix a GNU-ism in su invocation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GNU su supports the -c option to specify a command to execute. However, other flavours of su may have a different interpretation of the '-c' flag (e.g. FreeBSD and OpenBSD). The behaviour is correct when '-c' follows an explicit username. Signed-off-by: Rémy Oudompheng Signed-off-by: Allan McRae Signed-off-by: Dan McGee --- scripts/makepkg.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 1c8c50e8..69922c99 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -394,7 +394,7 @@ run_pacman() { if [ "$(type -p sudo)" ]; then cmd="sudo $cmd" else - cmd="su -c '$cmd'" + cmd="su root -c '$cmd'" fi fi eval "$cmd" -- cgit v1.2.3-70-g09d2