[pacman-dev] [PATCH] makepkg: avoid redirecting stdout

Dave Reisner dreisner at archlinux.org
Fri Apr 26 20:32:37 EDT 2013


If stdout is already redirected, redirecting stderr to stdout can lead
to undesirable results.

Fixes FS#34974.

Signed-off-by: Dave Reisner <dreisner at archlinux.org>
---
This is somewhat of an RFC. Allan and I were unable to discern why this was
originally done from git history.

 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 da620a4..838d435 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -1451,7 +1451,7 @@ run_function() {
 		wait $teepid
 		rm "$logpipe"
 	else
-		$pkgfunc 2>&1
+		"$pkgfunc"
 	fi
 	# reset our shell options
 	eval "$shellopts"
-- 
1.8.2.1



More information about the pacman-dev mailing list