From 92bf8e3bf7edfeeda4202ba62bfcacffe07afeef Mon Sep 17 00:00:00 2001 From: Packit Service Date: Mar 24 2021 01:32:18 +0000 Subject: Apply patch glibc-rh1817513-26.patch patch_name: glibc-rh1817513-26.patch present_in_specfile: true location_in_specfile: 427 --- diff --git a/elf/tst-pldd.c b/elf/tst-pldd.c index 40abee9..e2de312 100644 --- a/elf/tst-pldd.c +++ b/elf/tst-pldd.c @@ -18,6 +18,7 @@ #include #include +#include #include #include #include @@ -28,6 +29,7 @@ #include #include #include +#include static void target_process (void *arg) @@ -60,12 +62,14 @@ do_test (void) char pid[3 * sizeof (uint32_t) + 1]; snprintf (pid, array_length (pid), "%d", target.pid); - const char prog[] = "/usr/bin/pldd"; + char *prog = xasprintf ("%s/pldd", support_bindir_prefix); pldd = support_capture_subprogram (prog, (char *const []) { (char *) prog, pid, NULL }); support_capture_subprocess_check (&pldd, "pldd", 0, sc_allow_stdout); + + free (prog); } /* Check 'pldd' output. The test is expected to be linked against only