From: Andreas Schwab Date: Tue, 21 Feb 2023 21:32:11 +0000 (+0100) Subject: objcopy: Set bfd_error_system_call before reporting error from make_tempname X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b87d9d73297ea5c4e4462f46510b107208321a0;p=thirdparty%2Fbinutils-gdb.git objcopy: Set bfd_error_system_call before reporting error from make_tempname --- 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;