diff options
author | Tristan Gingold <gingold@adacore.com> | 2010-12-10 10:43:35 +0000 |
---|---|---|
committer | Tristan Gingold <gingold@adacore.com> | 2010-12-10 10:43:35 +0000 |
commit | 7e60dcbc91e775810434a64fdfc4e408f770774d (patch) | |
tree | 4aa0cc3c884dc8115ed6736550844dbb97b86c66 /ld | |
parent | f76edcec1e3be0d56a9b9d84d08118c4c891f846 (diff) | |
download | binutils-redhat-7e60dcbc91e775810434a64fdfc4e408f770774d.tar.gz |
Backport
ld/
2010-11-05? Pierre Muller? <muller@ics.u-strasbg.fr>
* emultempl/spuelf.em (new_tmp_file): Fix wrong first parameter.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 4 | ||||
-rw-r--r-- | ld/emultempl/spuelf.em | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index baeed00795..c90c2a925f 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -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. diff --git a/ld/emultempl/spuelf.em b/ld/emultempl/spuelf.em index 2ea760a7f0..ff6785ca6e 100644 --- a/ld/emultempl/spuelf.em +++ b/ld/emultempl/spuelf.em @@ -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; } |