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
96f64b44
Commit
96f64b44
authored
Jan 18, 2005
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed new bug that caused symlink test to fail
mysys/my_symlink.c: More debugging
parent
8f04aaae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
myisam/mi_open.c
myisam/mi_open.c
+1
-1
mysys/my_symlink.c
mysys/my_symlink.c
+6
-3
No files found.
myisam/mi_open.c
View file @
96f64b44
...
...
@@ -142,7 +142,7 @@ MI_INFO *mi_open(const char *name, int mode, uint open_flags)
goto
err
;
}
/* Don't call realpath() if the name can't be a link */
if
(
strcmp
(
name_buff
,
org_name
)
||
if
(
!
strcmp
(
name_buff
,
org_name
)
||
my_readlink
(
index_name
,
org_name
,
MYF
(
0
))
==
-
1
)
(
void
)
strmov
(
index_name
,
org_name
);
(
void
)
fn_format
(
data_name
,
org_name
,
""
,
MI_NAME_DEXT
,
2
+
4
+
16
);
...
...
mysys/my_symlink.c
View file @
96f64b44
...
...
@@ -26,9 +26,11 @@
/*
Reads the content of a symbolic link
If the file is not a symbolic link, return the original file name in to.
Returns: 0 if table was a symlink,
1 if table was a normal file
-1 on error.
RETURN
0 If filename was a symlink, (to will be set to value of symlink)
1 If filename was a normal file (to will be set to filename)
-1 on error.
*/
int
my_readlink
(
char
*
to
,
const
char
*
filename
,
myf
MyFlags
)
...
...
@@ -58,6 +60,7 @@ int my_readlink(char *to, const char *filename, myf MyFlags)
}
else
to
[
length
]
=
0
;
DBUG_PRINT
(
"exit"
,(
"result: %d"
,
result
));
DBUG_RETURN
(
result
);
#endif
/* HAVE_READLINK */
}
...
...
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