]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
objcopy: Set bfd_error_system_call before reporting error from make_tempname
authorAndreas Schwab <schwab@linux-m68k.org>
Tue, 21 Feb 2023 21:32:11 +0000 (22:32 +0100)
committerAndreas Schwab <schwab@linux-m68k.org>
Tue, 13 Jan 2026 10:20:02 +0000 (11:20 +0100)
binutils/objcopy.c

index ebd2a85c0f660793e91b6512c8f0adc9ea8eb9f2..7aef75f63ba8df7c2eae2ea0afdd7c18432c2b5e 100644 (file)
@@ -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;