[PATCH 3/3] elf: Fix tst-pldd for non-default --prefix and/or --bindir (BZ#24544)

DJ Delorie dj@redhat.com
Mon May 13 21:02:00 GMT 2019


Adhemerval Zanella <adhemerval.zanella@linaro.org> writes:
> 	[BZ #24544]
> 	* elf/tst-pldd.c (do_test): Use support_bindir_prefix instead of
> 	pre-defined value.

LGTM.

Reviewed-by: DJ Delorie <dj@redhat.com>

> +#include <stdlib.h>

For free(), Ok.

> +#include <support/support.h>

For paths, ok.

> -    const char prog[] = "/usr/bin/pldd";
> +    char *prog = xasprintf ("%s/pldd", support_bindir_prefix);

Ok.  Results must be free'd.

> +    free (prog);

And free'd.  Ok.



More information about the Libc-alpha mailing list