diff --git a/UnitCsvReceiverSmart.pl b/UnitCsvReceiverSmart.pl index 47b2442..2de4a23 100644 --- a/UnitCsvReceiverSmart.pl +++ b/UnitCsvReceiverSmart.pl @@ -109,7 +109,9 @@ while ( my $line = $tail->GetLine() ) { if ( $truser ne 'asega' ) { print getTimeStamp("log") . " >> Sender user $truser: duplicate as asega user -> load data into DB.\n"; - $truser = 'asega'; + my $realtruser = $truser; + $truser = "asega"; + $outpath =~ s/$realtruser/$truser/; my ( $login, $pass, $uid, $gid ) = getpwnam($truser) or warn getTimeStamp("log") . " >> $truser not in passwd file.\n";