Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
f0ff9c53
Commit
f0ff9c53
authored
Sep 27, 2007
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge kboortz@bk-internal.mysql.com:/home/bk/mysql-5.1-build
into mysql.com:/home/kent/bk/make-install/mysql-5.1-build
parents
08daf5e4
de1e4186
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
mysys/mf_tempfile.c
mysys/mf_tempfile.c
+14
-0
No files found.
mysys/mf_tempfile.c
View file @
f0ff9c53
...
@@ -59,11 +59,25 @@ File create_temp_file(char *to, const char *dir, const char *prefix,
...
@@ -59,11 +59,25 @@ File create_temp_file(char *to, const char *dir, const char *prefix,
myf
MyFlags
__attribute__
((
unused
)))
myf
MyFlags
__attribute__
((
unused
)))
{
{
File
file
=
-
1
;
File
file
=
-
1
;
#ifdef __WIN__
TCHAR
path_buf
[
MAX_PATH
-
14
];
#endif
DBUG_ENTER
(
"create_temp_file"
);
DBUG_ENTER
(
"create_temp_file"
);
DBUG_PRINT
(
"enter"
,
(
"dir: %s, prefix: %s"
,
dir
,
prefix
));
DBUG_PRINT
(
"enter"
,
(
"dir: %s, prefix: %s"
,
dir
,
prefix
));
#if defined (__WIN__)
#if defined (__WIN__)
/*
Use GetTempPath to determine path for temporary files.
This is because the documentation for GetTempFileName
has the following to say about this parameter:
"If this parameter is NULL, the function fails."
*/
if
(
!
dir
)
{
if
(
GetTempPath
(
sizeof
(
path_buf
),
path_buf
)
>
0
)
dir
=
path_buf
;
}
/*
/*
Use GetTempFileName to generate a unique filename, create
Use GetTempFileName to generate a unique filename, create
the file and release it's handle
the file and release it's handle
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment