git://git.exim.org
/
buildfarm-client.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4eacef6
)
Portability: replace `whoami`
author
Heiko Schlittermann (HS12-RIPE)
<hs@schlittermann.de>
Tue, 6 Dec 2016 22:16:15 +0000
(23:16 +0100)
committer
Heiko Schlittermann (HS12-RIPE)
<hs@schlittermann.de>
Tue, 6 Dec 2016 22:16:15 +0000
(23:16 +0100)
run_build
patch
|
blob
|
history
diff --git
a/run_build
b/run_build
index 5dde757f26dec57f1b003c835216083bd2f853ab..cc6838ba8369023f02bed093c77c6bd57faf7b21 100755
(executable)
--- 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;
@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;
@tmp = `echo "Build Farm user info:"; id $me
cd $exim && perl -pi -e 's/^# CONFIGURE_OWNER=\$/CONFIGURE_OWNER=$me/' $local_conf`;
push @confout, @tmp;