From 71dcc92d4464cce2344e87df8225278a3b3293dc Mon Sep 17 00:00:00 2001 From: "Heiko Schlittermann (HS12-RIPE)" Date: Tue, 6 Dec 2016 23:16:15 +0100 Subject: [PATCH 1/1] Portability: replace `whoami` --- run_build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/run_build b/run_build index 5dde757..cc6838b 100755 --- a/run_build +++ b/run_build @@ -1166,7 +1166,8 @@ sub configure @tmp = `echo "Hardcoded Exim user info:"; id $exim_user cd $exim && perl -pi -e 's/^EXIM_USER=.*/EXIM_USER=$exim_user/' $local_conf`; push @confout, @tmp; - my $me = `whoami`; chomp $me; + #my $me = `whoami`; chomp $me; + my $me = getpwuid($>) // die "$0: getpwuid($>): $!\n"; @tmp = `echo "Build Farm user info:"; id $me cd $exim && perl -pi -e 's/^# CONFIGURE_OWNER=\$/CONFIGURE_OWNER=$me/' $local_conf`; push @confout, @tmp; -- 2.30.2