From: Heiko Schlittermann (HS12-RIPE) Date: Tue, 6 Dec 2016 22:16:15 +0000 (+0100) Subject: Portability: replace `whoami` X-Git-Url: https://git.exim.org/buildfarm-client.git/commitdiff_plain/71dcc92d4464cce2344e87df8225278a3b3293dc?ds=sidebyside Portability: replace `whoami` --- 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;