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
037751e8
Commit
037751e8
authored
Aug 25, 2008
by
Magnus Svensson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Print error message in diff_files if any of the two files to diff does not exist
parent
ee7e4221
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
client/mysqltest.cc
client/mysqltest.cc
+8
-0
No files found.
client/mysqltest.cc
View file @
037751e8
...
@@ -3335,6 +3335,14 @@ void do_diff_files(struct st_command *command)
...
@@ -3335,6 +3335,14 @@ void do_diff_files(struct st_command *command)
sizeof
(
diff_file_args
)
/
sizeof
(
struct
command_arg
),
sizeof
(
diff_file_args
)
/
sizeof
(
struct
command_arg
),
' '
);
' '
);
if
(
access
(
ds_filename
.
str
,
F_OK
)
!=
0
)
die
(
"command
\"
diff_files
\"
failed, file '%s' does not exist"
,
ds_filename
.
str
);
if
(
access
(
ds_filename2
.
str
,
F_OK
)
!=
0
)
die
(
"command
\"
diff_files
\"
failed, file '%s' does not exist"
,
ds_filename2
.
str
);
if
((
error
=
compare_files
(
ds_filename
.
str
,
ds_filename2
.
str
)))
if
((
error
=
compare_files
(
ds_filename
.
str
,
ds_filename2
.
str
)))
{
{
/* Compare of the two files failed, append them to output
/* Compare of the two files failed, append them to output
...
...
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