summaryrefslogtreecommitdiff
path: root/source4/selftest/env
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-11-06 09:33:23 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:44:33 +0100
commit7a09d8c4e4ea90b965c0421a487147bca7cbd944 (patch)
tree97921dc526662344b58a6879c4aee1f2e867689f /source4/selftest/env
parent49c4a40e2f87b3e37f3248464c43118c6c8aaadb (diff)
downloadsamba-7a09d8c4e4ea90b965c0421a487147bca7cbd944.tar.gz
samba-7a09d8c4e4ea90b965c0421a487147bca7cbd944.tar.bz2
samba-7a09d8c4e4ea90b965c0421a487147bca7cbd944.zip
r25869: selftest: strip newline from `whoami` output, hopefully fix provision on mac os 10
metze (This used to be commit c6c62abc07888743b6349b0107ee1b17265bd154)
Diffstat (limited to 'source4/selftest/env')
-rw-r--r--source4/selftest/env/Samba4.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/selftest/env/Samba4.pm b/source4/selftest/env/Samba4.pm
index f4fe723124..bf8f35990c 100644
--- a/source4/selftest/env/Samba4.pm
+++ b/source4/selftest/env/Samba4.pm
@@ -451,6 +451,7 @@ sub provision($$$$$$)
my $dnsname = "samba.example.com";
my $basedn = "dc=samba,dc=example,dc=com";
my $unix_name = ($ENV{USER} or $ENV{LOGNAME} or `whoami`);
+ chomp $unix_name;
my $unix_uid = $>;
my $unix_gids_str = $);
my @unix_gids = split(" ", $unix_gids_str);