[PATCH] objcopy: Set bfd_error_system_call before reporting error from make_tempname
Jan Beulich
jbeulich@suse.com
Tue Jan 13 08:29:49 GMT 2026
On 12.01.2026 23:13, Andreas Schwab wrote:
> ---
> binutils/objcopy.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/binutils/objcopy.c b/binutils/objcopy.c
> index ebd2a85c0f6..7aef75f63ba 100644
> --- a/binutils/objcopy.c
> +++ b/binutils/objcopy.c
> @@ -5096,6 +5096,7 @@ strip_main (int argc, char *argv[])
>
> if (tmpname == NULL)
> {
> + bfd_set_error (bfd_error_system_call);
> bfd_nonfatal_message (argv[i], NULL, NULL,
> _("could not create temporary file to hold stripped copy"));
> status = 1;
Okay.
Jan
More information about the Binutils
mailing list