]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Backport
authorTristan Gingold <gingold@adacore.com>
Fri, 10 Dec 2010 10:43:53 +0000 (10:43 +0000)
committerTristan Gingold <gingold@adacore.com>
Fri, 10 Dec 2010 10:43:53 +0000 (10:43 +0000)
ld/
2010-11-05? Pierre Muller? <muller@ics.u-strasbg.fr>

* emultempl/spuelf.em (new_tmp_file): Fix wrong first parameter.

ld/ChangeLog
ld/emultempl/spuelf.em

index baeed0079517a96faac8eeadaa9de2d2839e6548..c90c2a925fb2d3d529d02ac639d16d950e7c44c5 100644 (file)
@@ -1,3 +1,7 @@
+2010-11-05 Pierre MullerĀ  <muller@ics.u-strasbg.fr>
+
+       * emultempl/spuelf.em (new_tmp_file): Fix wrong first parameter.
+
 2010-11-30  Joel Sherrill  <joel.sherrill@oarcorp.com>
 
        * configure.tgt: Add sparc64-rtems.
index 2ea760a7f0b3033ef5b3ffe0451a81bea5d98d57..ff6785ca6e27c2dcf48e7e7743de690ad8475b59 100644 (file)
@@ -355,7 +355,7 @@ new_tmp_file (char **fname)
   *fname = mktemp (*fname);
   if (*fname == NULL)
     return -1;
-  fd = open (fname, O_RDWR | O_CREAT | O_EXCL, 0600);
+  fd = open (*fname, O_RDWR | O_CREAT | O_EXCL, 0600);
 #endif
   return fd;
 }