1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-22 22:04:08 +03:00

selftest: Fix libasan preload

libasan.so needs to be the first library which is preloaded or it wont
work.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Andreas Schneider 2021-02-02 09:17:17 +01:00 committed by Andrew Bartlett
parent 4f80f5f904
commit 12ca2e37b7

View File

@ -344,7 +344,7 @@ my $ld_preload = $ENV{LD_PRELOAD};
if ($opt_libasan_so_path) {
if ($ld_preload) {
$ld_preload = "$ld_preload:$opt_libasan_so_path";
$ld_preload = "$opt_libasan_so_path:$ld_preload";
} else {
$ld_preload = "$opt_libasan_so_path";
}