Fix LD_PRELOAD syntax

From ld.so(8): The items of the list can be separated
by spaces or colons...
This commit is contained in:
Matthias Clasen
2023-01-15 15:01:21 -05:00
parent f26534a3f2
commit ee71fb58b1
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ sysprof_memprof_source_modify_spawn (SysprofSource *source,
else
sysprof_spawnable_setenv (spawnable,
"LD_PRELOAD",
(freeme = g_strdup_printf ("%s,%s", so_path, ld_preload)));
(freeme = g_strdup_printf ("%s:%s", so_path, ld_preload)));
}
#endif
}

View File

@ -56,7 +56,7 @@ sysprof_preload_source_modify_spawn (SysprofSource *source,
else
sysprof_spawnable_setenv (spawnable,
"LD_PRELOAD",
(freeme = g_strdup_printf ("%s,%s", self->preload, ld_preload)));
(freeme = g_strdup_printf ("%s:%s", self->preload, ld_preload)));
}
#endif
}