diff options
author | unknown <msvensson@pilot.blaudden> | 2007-03-23 11:01:47 +0100 |
---|---|---|
committer | unknown <msvensson@pilot.blaudden> | 2007-03-23 11:01:47 +0100 |
commit | 2188de4fdd7f452e06114d12d5628d68f6d1eba5 (patch) | |
tree | f97ccf8d0efcbd94b2aed52124e95c863b8bedce /mysys/my_static.h | |
parent | d6bd171fd2ecf9a58c2dcd3f34b9b248c7ac62ba (diff) | |
download | mariadb-git-2188de4fdd7f452e06114d12d5628d68f6d1eba5.tar.gz |
Bug#26233 very suspect code in mf_tempfile.c, in function create_temp_file()
- Rework the windows implementation in 'create_temp_file' to be
thread safe by using GetTempFileName instad of fiddling
with "environ"
mysys/mf_tempfile.c:
- Update windows implementation of 'create_temp_file' to use
GetTempFileName in favor of fiddeling with "environ" in an unsafe way
- Remove the implementation that is supposed to be used if not
windows, not mkstemp or tmpnam exists as it not longer compiles it
can't be used anywhere.
- Update function comment for 'create_temp_file'
mysys/my_static.c:
Remove unused variable
mysys/my_static.h:
Remove unused variable
Diffstat (limited to 'mysys/my_static.h')
-rw-r--r-- | mysys/my_static.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/mysys/my_static.h b/mysys/my_static.h index cbd293a0431..b438c936225 100644 --- a/mysys/my_static.h +++ b/mysys/my_static.h @@ -60,10 +60,6 @@ extern const char *soundex_map; extern USED_MEM* my_once_root_block; extern uint my_once_extra; -#if !defined(HAVE_TEMPNAM) || defined(HPUX11) -extern int _my_tempnam_used; -#endif - extern byte *sf_min_adress,*sf_max_adress; extern uint sf_malloc_count; extern struct st_irem *sf_malloc_root; |