OSDN Git Service

ld/
authorrsandifo <rsandifo>
Fri, 5 Nov 2010 17:20:17 +0000 (17:20 +0000)
committerrsandifo <rsandifo>
Fri, 5 Nov 2010 17:20:17 +0000 (17:20 +0000)
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 6eb5715..74de9ff 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-05  Tristan Gingold  <gingold@adacore.com>
 
        * po/ld.pot: Regenerate
index 2ea760a..ff6785c 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;
 }