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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
73963de6
Commit
73963de6
authored
Aug 23, 2006
by
cmiller@zippy.cornsilk.net
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-5.0-maint
into zippy.cornsilk.net:/home/cmiller/work/mysql/m50-maint-b21224
parents
f0793773
8a333059
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
client/mysql_upgrade.c
client/mysql_upgrade.c
+14
-2
No files found.
client/mysql_upgrade.c
View file @
73963de6
...
...
@@ -157,17 +157,29 @@ static int create_defaults_file(const char *path, const char *our_defaults_path)
File
our_defaults_file
,
defaults_file
;
char
buffer
[
512
];
char
*
buffer_end
;
int
failed_to_open_count
=
0
;
int
error
;
/* check if the defaults file is needed at all */
if
(
!
opt_password
)
return
0
;
defaults_file
=
my_open
(
path
,
O_BINARY
|
O_CREAT
|
O_WRONLY
,
retry_open:
defaults_file
=
my_open
(
path
,
O_BINARY
|
O_CREAT
|
O_WRONLY
|
O_EXCL
,
MYF
(
MY_FAE
|
MY_WME
));
if
(
defaults_file
<
0
)
{
if
(
failed_to_open_count
==
0
)
{
remove
(
path
);
failed_to_open_count
+=
1
;
goto
retry_open
;
}
else
return
1
;
}
upgrade_defaults_created
=
1
;
if
(
our_defaults_path
)
{
...
...
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