r25869: selftest: strip newline from `whoami` output, hopefully fix provision on...
authorStefan Metzmacher <metze@samba.org>
Tue, 6 Nov 2007 08:33:23 +0000 (09:33 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 21 Dec 2007 04:44:33 +0000 (05:44 +0100)
metze
(This used to be commit c6c62abc07888743b6349b0107ee1b17265bd154)

source4/selftest/env/Samba4.pm

index f4fe723124ba87446397cc06e3cfaa972e18de7f..bf8f35990cd12c3f32fc3c384ca611607988e03f 100644 (file)
@@ -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);