summaryrefslogtreecommitdiff
path: root/source4/selftest/env
diff options
context:
space:
mode:
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);